Create nolabs-deploy job
A new job has been created to deploy the latest version
of the website to production server. This job can only
be triggered and the deployment can be done by putting
the keyword on Gerrit change as comment which is
website-deploy-to-production.
Change-Id: Idf788cedd0df5e0f2f8bf156552baeb1b1b15e1e
diff --git a/jjb/nolabs/nolabs-verify-merge-jobs.yaml b/jjb/nolabs/nolabs-verify-merge-deploy-jobs.yaml
similarity index 73%
rename from jjb/nolabs/nolabs-verify-merge-jobs.yaml
rename to jjb/nolabs/nolabs-verify-merge-deploy-jobs.yaml
index 532f37b..3a6a480 100644
--- a/jjb/nolabs/nolabs-verify-merge-jobs.yaml
+++ b/jjb/nolabs/nolabs-verify-merge-deploy-jobs.yaml
@@ -31,6 +31,8 @@
- 'nolabs-verify-{stream}':
slave-label: nolabs-dev
- 'nolabs-merge-{stream}':
+ slave-label: nolabs-dev
+ - 'nolabs-deploy-{stream}':
slave-label: nolabs-prod
- job-template:
@@ -169,4 +171,68 @@
#!/bin/bash
echo "To be implemented"
+- job-template:
+ name: 'nolabs-deploy-{stream}'
+
+ concurrent: false
+
+ parameters:
+ - project-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ - nordix-gerrit-parameters
+ - label:
+ name: SLAVE_LABEL
+ default: '{slave-label}'
+ description: 'Slave label to schedule this job on.'
+
+ properties:
+ - logrotate
+ - build-blocker:
+ use-build-blocker: true
+ blocking-jobs:
+ - 'nolabs-.*'
+ block-level: 'NODE'
+ - throttle:
+ max-per-node: 1
+ max-total: 1
+ option: project
+
+ wrappers:
+ - build-timeout:
+ timeout: 10
+ - fix-workspace-permissions
+
+ scm:
+ - git-scm:
+ ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+ branch: '{branch}'
+ refspec: ''
+ wipe_workspace: true
+ clean_before: false
+
+ triggers:
+ - gerrit:
+ server-name: 'Nordix Gerrit'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'website-deploy-to-production'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: 'nolabs/website'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ disable-strict-forbidden-file-verification: 'false'
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: '.gitignore'
+ - compare-type: ANT
+ pattern: '.gitreview'
+
+ builders:
+ - shell: |
+ #!/bin/bash
+ echo "To be implemented"
+
# vim: set ts=2 sw=2 expandtab: