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 @@ -35,7 +35,6 @@ pipeline {
rtGradleRun (
tool: GRADLE_TOOL, // Tool name from Jenkins configuration
rootDir: "gradle-examples/gradle-example-ci-server/",
buildFile: 'build.gradle',
tasks: 'clean artifactoryPublish',
deployerId: "GRADLE_DEPLOYER",
resolverId: "GRADLE_RESOLVER"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pipeline {
useWrapper: true,
tool: GRADLE_TOOL, // Tool name from Jenkins configuration
rootDir: "gradle-examples/gradle-example/",
buildFile: 'build.gradle',
tasks: 'clean artifactoryPublish',
deployerId: "GRADLE_DEPLOYER",
resolverId: "GRADLE_RESOLVER"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ node {

stage ('Exec Gradle') {
docker.image('gradle').inside {
rtGradle.run rootDir: 'gradle-examples/gradle-example-ci-server/', buildFile: 'build.gradle', tasks: 'aP', buildInfo: buildInfo
rtGradle.run rootDir: 'gradle-examples/gradle-example-ci-server/', tasks: 'aP', buildInfo: buildInfo
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
* rtGradle.tool = GRADLE_TOOL
* Option 2: Set `GRADLE_HOME` environment variable as configured in the container.
* withEnv(['GRADLE_HOME=/opt/gradle']) {
rtGradle.run rootDir: "gradle-examples/gradle-example/", buildFile: 'build.gradle', tasks: 'clean artifactoryPublish', buildInfo: buildInfo
rtGradle.run rootDir: "gradle-examples/gradle-example/", tasks: 'clean artifactoryPublish', buildInfo: buildInfo
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ node {
}

stage ('Test') {
rtGradle.run rootDir: 'gradle-examples/gradle-example-ci-server/', buildFile: 'build.gradle', tasks: 'clean test'
rtGradle.run rootDir: 'gradle-examples/gradle-example-ci-server/', tasks: 'clean test'
}

stage ('Deploy') {
rtGradle.run rootDir: 'gradle-examples/gradle-example-ci-server/', buildFile: 'build.gradle', tasks: 'artifactoryPublish', buildInfo: buildInfo
rtGradle.run rootDir: 'gradle-examples/gradle-example-ci-server/', tasks: 'artifactoryPublish', buildInfo: buildInfo
rtGradle.deployer.deployArtifacts buildInfo
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ node {
}

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

stage ('Publish build info') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ node {
}

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

stage ('Publish build info') {
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-example/gradle-example/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ node {
if(CLEAN_REPO == "YES") {
sh 'rm -rf ~/.gradle/caches'
}
rtGradle.run rootDir: "gradle-example/", buildFile: 'build.gradle', tasks: 'clean artifactoryPublish', buildInfo: buildInfo
rtGradle.run rootDir: "gradle-example/", tasks: 'clean artifactoryPublish', buildInfo: buildInfo

//Publish artifacts to Artifactory along with build information and scan build artifacts in Xray
stage 'Publish Build Information & Scan Artifacts'
Expand Down