--- - project: name: "openbook-pipeline" artifact: - "admin-api-server" - "admin-web-ui" - "customer-api-server" - "customer-web-ui" - "job-scheduler-server" - "workflow-server" jobs: - "{artifact}-pipeline" - job-template: name: "{artifact}-pipeline" project-type: pipeline dsl: | pipeline {{ agent {{ node {{ label "openbook_v4" customWorkspace "workspace/{artifact}" }} }} stages {{ stage("gradle") {{ triggers {{ pollSCM 'H/5 * * * *' }} steps {{ checkout([ scm: [ $class: "GitSCM", branches: [ [name: "unstable"] ], userRemoteConfigs: [ [url: "git@github.com:Talligent/{artifact}.git"] ], poll: true, changelog: false ] ]) 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"] ], poll: false, changelog: false ] ]) 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("docker-container") {{ steps {{ checkout([ scm: [ $class: "GitSCM", branches: [ [name: "master"] ], userRemoteConfigs: [ [url: "git@github.com:Talligent/openbook-v4-ci.git"] ], poll: false, changelog: false ] ]) sh(script: "./build-docker-containers.sh {artifact}") }} }} }} }}