diff options
Diffstat (limited to 'jjb')
| -rw-r--r-- | jjb/yaml/openbook-core-pipeline.yaml | 22 | ||||
| -rw-r--r-- | jjb/yaml/openbook-pipeline.yaml | 26 |
2 files changed, 39 insertions, 9 deletions
diff --git a/jjb/yaml/openbook-core-pipeline.yaml b/jjb/yaml/openbook-core-pipeline.yaml index d92b605..8c2ff85 100644 --- a/jjb/yaml/openbook-core-pipeline.yaml +++ b/jjb/yaml/openbook-core-pipeline.yaml @@ -1,13 +1,19 @@ --- - project: name: "openbook-core-pipeline" - branch: - - "unstable" - - "develop" - - "stage" - - "master" jobs: - - "openbook-core-{branch}-pipeline" + - "openbook-core-{branch}-pipeline": + branch: "unstable" + poll: true + - "openbook-core-{branch}-pipeline": + branch: "develop" + poll: true + - "openbook-core-{branch}-pipeline": + branch: "stage" + poll: false + - "openbook-core-{branch}-pipeline": + branch: "master" + poll: false - job-template: name: "openbook-core-{branch}-pipeline" @@ -18,7 +24,7 @@ node {{ label "master" }} - }} + }} stages {{ stage("checkout") {{ agent {{ @@ -28,7 +34,7 @@ }} }} steps {{ - git(branch: "{branch}", url: "git@github.com:Talligent/openbook-core.git") + git(poll: {poll}, branch: "{branch}", url: "git@github.com:Talligent/openbook-core.git") }} }} stage("admin-api-server") {{ diff --git a/jjb/yaml/openbook-pipeline.yaml b/jjb/yaml/openbook-pipeline.yaml index c379af5..37c8dee 100644 --- a/jjb/yaml/openbook-pipeline.yaml +++ b/jjb/yaml/openbook-pipeline.yaml @@ -6,98 +6,122 @@ 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" @@ -113,7 +137,7 @@ stages {{ stage("gradle") {{ steps {{ - git(branch: "{branch}", url: "git@github.com:Talligent/{artifact}.git") + 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") |
