summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-script.yaml
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2019-09-09 17:02:25 +0200
committerKonrad Bańka <k.banka@samsung.com>2019-09-09 17:10:17 +0200
commit67a1ef148ac34545731f369c1084251b9ffdec31 (patch)
treefbd755aa9a96238682f451fc3c20ce5a962ebd74 /jjb/global-templates-script.yaml
parent764bb8283a5cbf93ca9cbb8e2dd9760e783f9a78 (diff)
Switch KUD deploying job to run on changeset basis
Removed no longer used c template and created new one in script templates that suits it better. Issue-ID: MULTICLOUD-707 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Iba5111a49d99dbe58bcb9af5a32c3adb7ee03176
Diffstat (limited to 'jjb/global-templates-script.yaml')
-rw-r--r--jjb/global-templates-script.yaml46
1 files changed, 46 insertions, 0 deletions
diff --git a/jjb/global-templates-script.yaml b/jjb/global-templates-script.yaml
index fcbf745fc..e6f074407 100644
--- a/jjb/global-templates-script.yaml
+++ b/jjb/global-templates-script.yaml
@@ -2,6 +2,52 @@
# vim: sw=2 ts=2 sts=2 et :
- job-template:
+ #
+ # job template for verifying gerrit changeset by shell script
+ #
+ # Required Variables:
+ # project-name: name of project
+ # area: area of project covered with this verification job
+ # project: name of scm repository to work on
+ # stream: name of stream used (set the same as branch if you're not sure)
+ # branch: git branch to work on
+ # script: build script to execute
+ # Optional Variables:
+ # pattern: trigger job only if modification covered file in pattern
+ # build-node: label(flavor) of jenkins slave
+ name: '{project-name}-{stream}-{area}-verify-shell'
+ node: '{build-node}'
+ type: freestyle
+
+ pattern: '**'
+
+ parameters:
+ - lf-infra-parameters:
+ branch: '{branch}'
+ project: '{project}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+
+ scm:
+ - gerrit-trigger-scm:
+ refspec: '$GERRIT_REFSPEC'
+ submodule-recursive: '{submodule-recursive}'
+ choosing-strategy: 'gerrit'
+
+ triggers:
+ - gerrit-trigger-patch-submitted:
+ server: '{server-name}'
+ project: '{project}'
+ branch: '{branch}'
+ files: '{pattern}'
+
+ builders:
+ - shell: '{script}'
+
+ publishers:
+ - lf-infra-publish
+
+- job-template:
# Job template for merging a submission. triggered on
# gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
# run script