Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ node {
}

stage ('Push image to Artifactory') {
buildInfo = rtDocker.push ARTIFACTORY_DOCKER_REGISTRY + '/hello-world:latest', 'docker-local'
rtDocker.push ARTIFACTORY_DOCKER_REGISTRY + '/hello-world:latest', 'docker-local', buildInfo
}

stage ('Publish build info') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node {
def server = Artifactory.newServer url: SERVER_URL, credentialsId: CREDENTIALS
def rtGradle = Artifactory.newGradleBuild()
def buildInfo
def buildInfo = Artifactory.newBuildInfo()

stage ('Clone') {
git url: 'https://github.com/jfrog/project-examples.git'
Expand All @@ -14,7 +14,7 @@ node {
}

stage ('Exec Gradle') {
buildInfo = rtGradle.run rootDir: "gradle-examples/gradle-example-ci-server/", buildFile: 'build.gradle', tasks: 'clean artifactoryPublish'
rtGradle.run rootDir: "gradle-examples/gradle-example-ci-server/", buildFile: 'build.gradle', tasks: 'clean artifactoryPublish', buildInfo
}

stage ('Publish build info') {
Expand Down