diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-09 13:05:23 -0600 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-09 13:05:23 -0600 |
| commit | c9dc456fe563ae99f684eb06668f20cc94c059f7 (patch) | |
| tree | 182312f49f074797860f7585fc864464ef49b854 /jjb/yaml | |
| parent | e3e0d72254114a1cb5aa3506dbef96c2b319ec67 (diff) | |
trying git instead of checkout to get polling to work
Diffstat (limited to 'jjb/yaml')
| -rw-r--r-- | jjb/yaml/openbook-pipeline.yaml | 69 |
1 files changed, 24 insertions, 45 deletions
diff --git a/jjb/yaml/openbook-pipeline.yaml b/jjb/yaml/openbook-pipeline.yaml index c5bce1c..c07f14c 100644 --- a/jjb/yaml/openbook-pipeline.yaml +++ b/jjb/yaml/openbook-pipeline.yaml @@ -24,68 +24,47 @@ stages {{ stage("gradle") {{ steps {{ - checkout([ - scm: [ - $class: "GitSCM", - branches: [ - [name: "master"] - ], - userRemoteConfigs: [ - [url: "git@github.com:Talligent/{artifact}.git"] - ], - poll: true - ] - ]) + git( + changelog: true, + poll: true, + branch: master, + url: "git@github.com:Talligent/{artifact}.git" + ) sh(script: "gradle -PbuildNumber=4.1.${{BUILD_NUMBER}} -PbuildMode=buildProd -Dorg.gradle.daemon=false clean shadowJar") stash(includes: "build/libs/*.jar", name: "jar") }} }} stage("upload_jar") {{ steps {{ - checkout([ - scm: [ - $class: "GitSCM", - branches: [ - [name: "master"] - ], - userRemoteConfigs: [ - [url: "git@github.com:Talligent/deployment-scripts.git"] - ] - ] - ]) + git( + changelog: true, + poll: false, + branch: master, + url: "git@github.com:Talligent/deployment-scripts.git" + ) unstash(name: "jar") sh(script: "ruby openbook/ruby/upload_jar.rb --webdav-url=${{WEBDAV_URL}} --webdav-username=${{WEBDAV_USERNAME}} --webdav-password=${{WEBDAV_PASSWORD}} --artifact={artifact} --version=4.1.${{BUILD_NUMBER}} --filepath=build/libs/{artifact}.4.1.${{BUILD_NUMBER}}.jar") }} }} stage("build_docker_containers") {{ steps {{ - checkout([ - scm: [ - $class: "GitSCM", - branches: [ - [name: "master"] - ], - userRemoteConfigs: [ - [url: "git@github.com:Talligent/openbook-v4-ci.git"] - ] - ] - ]) + git( + changelog: true, + poll: false, + branch: master, + url: "git@github.com:Talligent/openbook-v4-ci.git" + ) sh(script: "./build-docker-containers.sh {artifact}") }} }} stage("deploy_dev_env") {{ steps {{ - checkout([ - scm: [ - $class: "GitSCM", - branches: [ - [name: "master"] - ], - userRemoteConfigs: [ - [url: "git@github.com:Talligent/openbook-v4-installer.git"] - ] - ] - ]) + git( + changelog: true, + poll: false, + branch: master, + url: "git@github.com:Talligent/openbook-v4-installer.git" + ) sh(script: "./deploy-dev-env.sh") }} }} |
