diff options
-rw-r--r-- | jjb/global-templates-python.yaml | 43 | ||||
-rw-r--r-- | jjb/policy/include-raw-docker.sh | 4 |
2 files changed, 45 insertions, 2 deletions
diff --git a/jjb/global-templates-python.yaml b/jjb/global-templates-python.yaml index 90d6c9072..a5c3b9003 100644 --- a/jjb/global-templates-python.yaml +++ b/jjb/global-templates-python.yaml @@ -64,3 +64,46 @@ # publishers: # - ecomp-infra-shiplogs: # maven-version: 'mvn33' + +- job-template: + name: '{project-name}-{stream}-docker-shell-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}' + + 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}' + + - docker-login + + - shell: !include-raw: include-docker-push.sh diff --git a/jjb/policy/include-raw-docker.sh b/jjb/policy/include-raw-docker.sh index 73581076e..5ecae4b22 100644 --- a/jjb/policy/include-raw-docker.sh +++ b/jjb/policy/include-raw-docker.sh @@ -9,10 +9,10 @@ for image in policy-os policy-nexus policy-db policy-base policy-drools policy-p echo "Building $image" mkdir -p target/$image cp $image/* target/$image - docker build --quiet --tag ${DOCKER_REPOSITORY}/openecomp/policy:$image target/$image + docker build --quiet --tag ${DOCKER_REPOSITORY}/openecomp/policy/$image target/$image done for image in policy-nexus policy-db policy-drools policy-pe; do echo "Pushing $image" - docker push ${DOCKER_REPOSITORY}/openecomp/policy:$image + docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image done |