Skip to content

Commit

Permalink
All master branch builds will publish to bintray (#1835)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
  • Loading branch information
Edward authored Aug 9, 2019
1 parent e32a3b7 commit 2fd934e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,34 @@ try {
}
}
}

if (env.BRANCH_NAME == "master") {
BintrayPublish: {
def stage_name = "Bintray publish node: "
node {
checkout scm

docker.image(docker_image_dind).withRun('--privileged') { d ->
docker.image(build_image).inside("--link ${d.id}:docker") {
stage(stage_name + 'Prepare') {
sh './gradlew --no-daemon --parallel clean assemble'
}
stage(stage_name + 'Publish') {
withCredentials([
usernamePassword(
credentialsId: 'pegasys-bintray',
usernameVariable: 'BINTRAY_USER',
passwordVariable: 'BINTRAY_KEY'
)
]) {
sh './gradlew --no-daemon --parallel bintrayUpload'
}
}
}
}
}
}
}
}
} catch (e) {
currentBuild.result = 'FAILURE'
Expand Down

0 comments on commit 2fd934e

Please sign in to comment.