summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-22 16:03:44 +0000
committerGerrit Code Review <gerrit@openecomp.org>2017-02-22 16:03:44 +0000
commit5e5dc632915cd9db4b338a982331c34a40f0cb2c (patch)
treecd020ef36198203b79e4eb4f6fd12bbd138a7eb3 /jjb
parentc562637d945ee79f3b87bd0dc0a291707375d669 (diff)
parenta20f8bf9b157dabf105baa2b935bd5282927116a (diff)
Merge "portal docker release job added"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/global-templates-script.yaml73
-rw-r--r--jjb/portal/docker-build-release.sh8
-rw-r--r--jjb/portal/portal-docker.yaml4
3 files changed, 84 insertions, 1 deletions
diff --git a/jjb/global-templates-script.yaml b/jjb/global-templates-script.yaml
index 7db818555..62d5d4b3a 100644
--- a/jjb/global-templates-script.yaml
+++ b/jjb/global-templates-script.yaml
@@ -714,3 +714,76 @@
# publishers:
# - ecomp-infra-shiplogs:
# maven-version: 'mvn33'
+
+- job-template:
+ # Job template for scm and script trigger - for docker daily release
+ #
+ # Required Variables:
+ # branch: git branch
+ # build-node: what build node to run on
+ # script: build script to execute
+
+ name: '{project-name}-{stream}-release-docker-script-daily'
+
+ project-type: freestyle
+ concurrent: true
+ node: '{build-node}'
+
+ 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: 'mvn33'
+
+ scm:
+ - gerrit-trigger-scm:
+ refspec: ''
+ choosing-strategy: 'default'
+ - git-extra-project:
+ project: '{extra-project1}'
+ refspec: '{extra-refspec1}'
+ branch: '{extra-branch1}'
+ checkout-dir: '{checkout-dir1}'
+ - git-extra-project:
+ project: '{extra-project2}'
+ refspec: '{extra-refspec2}'
+ branch: '{extra-branch2}'
+ checkout-dir: '{checkout-dir2}'
+
+ 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
+ # make sure maven gets installed / setup
+ - maven-target:
+ maven-version: 'mvn33'
+ goals: '--version'
+ settings: '{mvn-settings}'
+ settings-type: cfp
+ global-settings: 'global-settings'
+ global-settings-type: cfp
+ - shell: '{script}'
+
+# publishers:
+# - ecomp-infra-shiplogs:
+# maven-version: 'mvn33' \ No newline at end of file
diff --git a/jjb/portal/docker-build-release.sh b/jjb/portal/docker-build-release.sh
new file mode 100644
index 000000000..4f8c14eb2
--- /dev/null
+++ b/jjb/portal/docker-build-release.sh
@@ -0,0 +1,8 @@
+
+CURRENTDIR="$(pwd)"
+echo $CURRENTDIR
+ls -ltr
+cd deliveries
+ls -ltr
+chmod 755 *.*
+./os_docker_release.sh \ No newline at end of file
diff --git a/jjb/portal/portal-docker.yaml b/jjb/portal/portal-docker.yaml
index 33e850c2b..85b3536b4 100644
--- a/jjb/portal/portal-docker.yaml
+++ b/jjb/portal/portal-docker.yaml
@@ -10,7 +10,9 @@
- '{project-name}-{stream}-merge-docker-script':
script:
!include-raw-escape: 'docker-build-push.sh'
-
+ - '{project-name}-{stream}-release-docker-script-daily':
+ script:
+ !include-raw-escape: 'docker-build-release.sh'
project: 'portal'
stream:
- 'master':