diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2017-02-17 08:09:31 -0500 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2017-02-17 09:42:09 -0500 |
commit | accf645078914118a84f6bc02f30fd046553253d (patch) | |
tree | 321b336dccdbda6ca531f4d916db74366cce283e /jjb/policy | |
parent | 41fbc3dca4141daff878b3aa47c79db4afcf6a16 (diff) |
add policy docker
Change-Id: Ib6ed8fe5c4c44c541d3062a3cc27a3b9c7100ef8
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'jjb/policy')
-rw-r--r-- | jjb/policy/include-raw-docker.sh | 13 | ||||
-rw-r--r-- | jjb/policy/policy-docker.yaml | 19 |
2 files changed, 32 insertions, 0 deletions
diff --git a/jjb/policy/include-raw-docker.sh b/jjb/policy/include-raw-docker.sh new file mode 100644 index 000000000..642d8c23b --- /dev/null +++ b/jjb/policy/include-raw-docker.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES =================' + +for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do + mkdir -p target/$image + cp $image/* target/$image + docker build --quiet --tag ${DOCKER_REPOSITORY}/policy/$image target/$image +done + +for image in policy-nexus policy-db policy-drools policy-pe; do + docker push ${DOCKER_REPOSITORY}/policy/$image +done diff --git a/jjb/policy/policy-docker.yaml b/jjb/policy/policy-docker.yaml new file mode 100644 index 000000000..e7e5f9f24 --- /dev/null +++ b/jjb/policy/policy-docker.yaml @@ -0,0 +1,19 @@ +--- +- project: + name: policy-docker + project-name: 'policy-docker-policy' + jobs: + - '{project-name}-{stream}-docker-java-shell-daily': + docker-pom: 'pom.xml' + mvn-profile: 'prepare-package' + script: + !include-raw-escape: 'include-raw-docker.sh' + + project: 'policy/docker' + stream: + - 'master': + branch: 'master' + mvn-settings: 'policy-docker-settings' + files: '**' + archive-artifacts: '' + build-node: ubuntu1604-basebuild-4c-4g |