summaryrefslogtreecommitdiff
path: root/jjb/yaml/openbook-pipeline.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/yaml/openbook-pipeline.yaml')
-rw-r--r--jjb/yaml/openbook-pipeline.yaml28
1 files changed, 12 insertions, 16 deletions
diff --git a/jjb/yaml/openbook-pipeline.yaml b/jjb/yaml/openbook-pipeline.yaml
index 0fca23b..75cf363 100644
--- a/jjb/yaml/openbook-pipeline.yaml
+++ b/jjb/yaml/openbook-pipeline.yaml
@@ -25,7 +25,7 @@
stages {{
stage("gradle") {{
steps {{
- checkout([
+ checkout(
scm: [
$class: "GitSCM",
branches: [
@@ -33,18 +33,16 @@
],
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([
+ checkout(
scm: [
$class: "GitSCM",
branches: [
@@ -54,19 +52,17 @@
[url: "git@github.com:Talligent/deployment-scripts.git"]
],
extensions: [
- $class: "DisableRemotePoll"
- ],
- poll: false,
- changelog: false
+ [$class: "DisableRemotePoll"]
+ ]
]
- ])
+ )
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([
+ checkout(
scm: [
$class: "GitSCM",
branches: [
@@ -75,11 +71,11 @@
userRemoteConfigs: [
[url: "git@github.com:Talligent/openbook-v4-ci.git"]
],
- $class: "DisableRemotePoll",
- poll: false,
- changelog: false
+ extensions: [
+ [$class: "DisableRemotePoll"]
+ ]
]
- ])
+ )
sh(script: "./build-docker-containers.sh {artifact}")
}}
}}