summaryrefslogtreecommitdiff
path: root/jjb/yaml/openbook-ob-pipeline.yaml
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-10-30 15:36:48 -0600
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-10-30 15:36:48 -0600
commit135eb98b29c63ea46d056226e2fa0c3f1d74e44a (patch)
tree82bcf1f2f893aba75d4dfaa5de0d478d3a61c115 /jjb/yaml/openbook-ob-pipeline.yaml
parente92ab898c1b2d75ba0907de3d83d70926b936c30 (diff)
IS-29 and IS-30
Diffstat (limited to 'jjb/yaml/openbook-ob-pipeline.yaml')
-rw-r--r--jjb/yaml/openbook-ob-pipeline.yaml136
1 files changed, 136 insertions, 0 deletions
diff --git a/jjb/yaml/openbook-ob-pipeline.yaml b/jjb/yaml/openbook-ob-pipeline.yaml
new file mode 100644
index 0000000..657ba39
--- /dev/null
+++ b/jjb/yaml/openbook-ob-pipeline.yaml
@@ -0,0 +1,136 @@
+---
+- project:
+ name: "openbook-ob-pipeline"
+ jobs:
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-api-server"
+ branch: "unstable"
+ tag: "4.1"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-api-server"
+ branch: "develop"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-api-server"
+ branch: "stage"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-api-server"
+ branch: "master"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-web-ui"
+ branch: "unstable"
+ tag: "4.1"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-web-ui"
+ branch: "develop"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-web-ui"
+ branch: "stage"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "admin-web-ui"
+ branch: "master"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-api-server"
+ branch: "unstable"
+ tag: "4.1"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-api-server"
+ branch: "develop"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-api-server"
+ branch: "stage"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-api-server"
+ branch: "master"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-web-ui"
+ branch: "unstable"
+ tag: "4.1"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-web-ui"
+ branch: "develop"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-web-ui"
+ branch: "stage"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "customer-web-ui"
+ branch: "master"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "job-scheduler-server"
+ branch: "unstable"
+ tag: "4.1"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "job-scheduler-server"
+ branch: "develop"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "job-scheduler-server"
+ branch: "stage"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "job-scheduler-server"
+ branch: "master"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "workflow-server"
+ branch: "unstable"
+ tag: "4.1"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "workflow-server"
+ branch: "develop"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "workflow-server"
+ branch: "stage"
+ tag: "4.0"
+ - "{artifact}-{branch}-ob-pipeline":
+ artifact: "workflow-server"
+ branch: "master"
+ tag: "4.0"
+
+- job-template:
+ name: "{artifact}-{branch}-ob-pipeline"
+ project-type: pipeline
+ dsl: |
+ pipeline {{
+ agent {{
+ node {{
+ label "openbook_v4"
+ customWorkspace "workspace/{artifact}"
+ }}
+ }}
+ stages {{
+ stage("gradle") {{
+ steps {{
+ git(poll: false, 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}")
+ }}
+ }}
+ }}
+ }}