Skip to content

Commit 84bb443

Browse files
committed
Jenkinsfile: added stage 'upload-to-bintray'
1 parent 4d1e5c2 commit 84bb443

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Jenkinsfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ pipeline {
4444
}
4545
}
4646

47+
stage('upload-to-bintray') {
48+
when { expression { return BRANCH_NAME == 'publish' } }
49+
environment {
50+
BINTRAY_URL = credentials('bintray_url')
51+
BINTRAY_LOGIN = credentials('bintray_login')
52+
}
53+
steps {
54+
sh './gradlew --stacktrace -PpreferedRepo=${BINTRAY_URL} -PpreferedUsername=${BINTRAY_LOGIN_UST} -PpreferedPassword=${BINTRAY_LOGIN_PSW} uploadArchives'
55+
}
56+
}
57+
4758
}
4859

4960
// For global vars see /jenkins/pipeline-syntax/globals

0 commit comments

Comments
 (0)