diff options
author | 2017-03-09 11:26:59 -0800 | |
---|---|---|
committer | 2017-03-09 11:28:37 -0800 | |
commit | 39f388a95b6a5c36041d8af178a71459e0abd65e (patch) | |
tree | 844ec2aef89eeaef57ce77be6db97916d51d8e02 /jjb | |
parent | 67fee1f6a9f0439f30dd7960cb651cf4f55c5959 (diff) |
Adding docker-version-java template
Adding {project-name}-{stream}-docker-version-java-daily.
Creating a docker java daily template that also injects the
version.properties file. Also, the maven version command is run prior to
running the docker plugin, as it is in the other version jenkins jobs.
Change-Id: I570ba7c993a19ca845007af1381e16cf8736cb61
Signed-off-by: Patrick Brady <pb071s@att.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/global-templates-java.yaml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index a96c6258f..549fbd58f 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -669,6 +669,69 @@ - shell: '{script}' - job-template: + name: '{project-name}-{stream}-docker-version-java-daily' + project-type: freestyle + node: 'ubuntu1604-docker-8c-8g' + + properties: + - ecomp-infra-properties: + build-days-to-keep: '{build-days-to-keep}' + + parameters: + - ecomp-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: + - ecomp-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}' + + - inject: + properties-file: version.properties + + - maven-target: + maven-version: '{maven-version}' + goals: 'versions:set versions:update-child-modules versions:commit' + properties: + - 'newVersion=${{release_version}}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + + - docker-login + + - maven-docker-push-daily: + maven-version: '{maven-version}' + mvn-settings: '{mvn-settings}' + pom: '{docker-pom}' + # use default as mvn-profile if profile is not needed + mvn-profile: '{mvn-profile}' + +- job-template: name: '{project-name}-{stream}-aai-docker-java-daily' project-type: freestyle node: 'ubuntu1604-docker-8c-8g' |