diff options
Diffstat (limited to 'jjb/yaml/openbook-pipeline.yaml')
| -rw-r--r-- | jjb/yaml/openbook-pipeline.yaml | 160 |
1 files changed, 0 insertions, 160 deletions
diff --git a/jjb/yaml/openbook-pipeline.yaml b/jjb/yaml/openbook-pipeline.yaml deleted file mode 100644 index 8b1b84b..0000000 --- a/jjb/yaml/openbook-pipeline.yaml +++ /dev/null @@ -1,160 +0,0 @@ ---- -- project: - name: "openbook-pipeline" - jobs: - - "{artifact}-{branch}-pipeline": - artifact: "admin-api-server" - branch: "unstable" - tag: "4.1" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "admin-api-server" - branch: "develop" - tag: "4.0" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "admin-api-server" - branch: "stage" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "admin-api-server" - branch: "master" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "admin-web-ui" - branch: "unstable" - tag: "4.1" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "admin-web-ui" - branch: "develop" - tag: "4.0" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "admin-web-ui" - branch: "stage" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "admin-web-ui" - branch: "master" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "customer-api-server" - branch: "unstable" - tag: "4.1" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "customer-api-server" - branch: "develop" - tag: "4.0" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "customer-api-server" - branch: "stage" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "customer-api-server" - branch: "master" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "customer-web-ui" - branch: "unstable" - tag: "4.1" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "customer-web-ui" - branch: "develop" - tag: "4.0" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "customer-web-ui" - branch: "stage" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "customer-web-ui" - branch: "master" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "job-scheduler-server" - branch: "unstable" - tag: "4.1" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "job-scheduler-server" - branch: "develop" - tag: "4.0" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "job-scheduler-server" - branch: "stage" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "job-scheduler-server" - branch: "master" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "workflow-server" - branch: "unstable" - tag: "4.1" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "workflow-server" - branch: "develop" - tag: "4.0" - poll: "true" - - "{artifact}-{branch}-pipeline": - artifact: "workflow-server" - branch: "stage" - tag: "4.0" - poll: "false" - - "{artifact}-{branch}-pipeline": - artifact: "workflow-server" - branch: "master" - tag: "4.0" - poll: "false" - -- job-template: - name: "{artifact}-{branch}-pipeline" - project-type: pipeline - dsl: | - pipeline {{ - agent {{ - node {{ - label "openbook_v4" - customWorkspace "workspace/{artifact}" - }} - }} - stages {{ - stage("gradle") {{ - steps {{ - git(poll: {poll}, branch: "{branch}", url: "git@github.com:Talligent/{artifact}.git") - sh(script: "/var/lib/jenkins/find_next_tag.sh \$(pwd) {artifact} {tag}") - sh(script: "./gradlew -PbuildNumber=\$(cat /tmp/newtag_{artifact}) -PbuildMode=buildProd -Dorg.gradle.daemon=false clean shadowJar") - stash(includes: "build/libs/*.jar", name: "jar") - }} - }} - stage("upload-jar") {{ - steps {{ - git(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} --branch={branch} --version=\$(cat /tmp/newtag_{artifact}) --filepath=build/libs/{artifact}.\$(cat /tmp/newtag_{artifact}).jar") - }} - }} - stage("docker-container") {{ - steps {{ - git(poll: false, branch: "master", url: "git@github.com:Talligent/openbook-v4-ci.git") - sh(script: "./build-docker-containers.sh {artifact} {branch}") - }} - }} - }} - }} |
