diff options
author | JulienBe <jb379x@att.com> | 2017-06-21 23:37:39 +0200 |
---|---|---|
committer | JulienBe <jb379x@att.com> | 2017-06-22 20:11:59 +0200 |
commit | 91c56ec978bf3e542144038aefdcb29f3a537013 (patch) | |
tree | 91c957a42dcee8cf6764a11b795aa2ef1a5f9661 /jjb | |
parent | 9999e9145003e73ca2d055ee5ec41017f7cd1407 (diff) |
Adding clamp build jobs
Issue: <CLAMP-2>
Change-Id: Ie139dcb28b9c4bd71741339df8385ba95ef35a68
Signed-off-by: JulienBe <jb379x@att.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/clamp/clamp.yaml | 26 | ||||
-rw-r--r-- | jjb/global-templates-java.yaml | 55 |
2 files changed, 81 insertions, 0 deletions
diff --git a/jjb/clamp/clamp.yaml b/jjb/clamp/clamp.yaml new file mode 100644 index 000000000..d5255826d --- /dev/null +++ b/jjb/clamp/clamp.yaml @@ -0,0 +1,26 @@ +--- + +- project: + name: clamp + project-name: 'clamp' + jobs: + - '{project-name}-{stream}-verify-java' + - '{project-name}-{stream}-merge-java' + - '{project-name}-{stream}-release-java-daily' + - '{project-name}-{stream}-docker-java-properties-daily': + docker-pom: 'pom.xml' + mvn-profile: 'docker' + maven-properties: | + skip.docker.build=false + skip.docker.tag=false + skip.docker.push=false + clamp.registry=$ + + project: 'clamp' + stream: + - 'master': + branch: 'master' + mvn-settings: 'clamp-settings' + files: '**' + archive-artifacts: '' + build-node: ubuntu1604-basebuild-4c-4g diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 385bd6aa6..c3e137951 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -895,6 +895,61 @@ maven-version: '{maven-version}' - job-template: + # Job template for building & pushing docker images + # + # The purpose of this job template is to run : + # 1. login to the docker registry + # 2. do a clean deploy on the specified profile + # + # Required Variables: + # pom: name/location of the pom.xml file relative to the workspace + # profile: the docker profile defined in the pom + # maven-properties: properties passed to maven + name: '{project-name}-{stream}-docker-java-properties-daily' + project-type: freestyle + node: 'ubuntu1604-docker-8c-8g' + properties: + - infra-properties: + build-days-to-keep: '{build-days-to-keep}' + parameters: + - infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' + - maven-exec: + maven-version: '{maven-version}' + scm: + - gerrit-trigger-scm: + refspec: '' + choosing-strategy: 'default' + wrappers: + - infra-wrappers: + build-timeout: '{build-timeout}' + triggers: + # 12 AM UTC + - timed: 'H 12 * * *' + - gerrit-trigger-release-manually: + server: '{server-name}' + project: '{project}' + branch: '{branch}' + builders: + - provide-maven-settings: + global-settings-file: 'global-settings' + settings-file: '{mvn-settings}' + - docker-login + - maven-docker-push-daily: + maven-version: '{maven-version}' + mvn-settings: '{mvn-settings}' + pom: '{docker-pom}' + properties: '{maven-properties}' + # use default as mvn-profile if profile is not needed + mvn-profile: '{mvn-profile}' + publishers: + - infra-shiplogs: + maven-version: '{maven-version}' + +- job-template: name: '{project-name}-{stream}-docker-java-shell-daily' project-type: freestyle node: 'ubuntu1604-docker-8c-8g' |