diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-06 17:07:58 -0600 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-06 17:07:58 -0600 |
| commit | aa2e32bbfa949bba9d01f4b92ea8064173a2c1cd (patch) | |
| tree | bbd4b545cff782d1438491bda48eb671110278a0 /jjb/yaml/openbook-pipeline.yaml | |
| parent | 101d879d714ca97c33a4ea639693160cd9a07ad7 (diff) | |
simplified jjb files with a job-template
Diffstat (limited to 'jjb/yaml/openbook-pipeline.yaml')
| -rw-r--r-- | jjb/yaml/openbook-pipeline.yaml | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/jjb/yaml/openbook-pipeline.yaml b/jjb/yaml/openbook-pipeline.yaml new file mode 100644 index 0000000..ef8dc2b --- /dev/null +++ b/jjb/yaml/openbook-pipeline.yaml @@ -0,0 +1,90 @@ +--- +- 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 {{ + label "openbook_v4" + }} + stages {{ + stage("gradle") {{ + steps {{ + checkout([ + scm: [ + $class: "GitSCM", + branches: [ + [name: "master"] + ], + userRemoteConfigs: [ + [url: "git@github.com:Talligent/{artifact}.git"] + ] + ] + ]) + 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"] + ] + ] + ]) + 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("build_docker_containers") {{ + steps {{ + checkout([ + scm: [ + $class: "GitSCM", + branches: [ + [name: "master"] + ], + userRemoteConfigs: [ + [url: "git@github.com:Talligent/openbook-v4-ci.git"] + ] + ] + ]) + sh(script: "./build-docker-containers.sh") + }} + }} + stage("deploy_dev_env") {{ + steps {{ + checkout([ + scm: [ + $class: "GitSCM", + branches: [ + [name: "master"] + ], + userRemoteConfigs: [ + [url: "git@github.com:Talligent/openbook-v4-installer.git"] + ] + ] + ]) + sh(script: "./deploy-dev-env.sh") + }} + }} + }} + }} |
