Code Review
/
infra
/
cicd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add skeleton for datafile verify job
[infra/cicd.git]
/
jjb
/
global
/
jjb-macros.yaml
diff --git
a/jjb/global/jjb-macros.yaml
b/jjb/global/jjb-macros.yaml
index cfe19edf2d938fec5c727acb1f0c98ea8bef85af..c5cd27f8e0e41f75d8179c5d9e7e713f25f1e8b3 100644
(file)
--- a/
jjb/global/jjb-macros.yaml
+++ b/
jjb/global/jjb-macros.yaml
@@
-1,7
+1,7
@@
---
# these parameters are used for infra related variables
- parameter:
---
# these parameters are used for infra related variables
- parameter:
- name: infra-parameter
+ name: infra-parameter
s
parameters:
- string:
name: JJB_GIT_REPO
parameters:
- string:
name: JJB_GIT_REPO
@@
-14,12
+14,16
@@
# these parameters are used for setting the Gerrit Project on Nordix
- parameter:
# these parameters are used for setting the Gerrit Project on Nordix
- parameter:
- name: project-parameter
+ name: project-parameter
s
parameters:
- string:
name: PROJECT
default: '{project}'
description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
parameters:
- string:
name: PROJECT
default: '{project}'
description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
+ - string:
+ name: BRANCH
+ default: '{branch}'
+ description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)"
# these parameters are used for streaming changes from various Gerrit Systems
- parameter:
# these parameters are used for streaming changes from various Gerrit Systems
- parameter:
@@
-68,10
+72,11
@@
- scm:
name: git-scm
scm:
- scm:
name: git-scm
scm:
- - git:
&git-scm-defaults
- url: '$GIT_BASE_HTTPS'
+ - git:
+ url: '$GIT_BASE_HTTPS
/$PROJECT
'
branches:
branches:
- - 'origin/$BRANCH'
+ - 'refs/heads/{branch}'
+ refspec: '{refspec}'
timeout: 15
per-build-tag: false
skip-tag: true
timeout: 15
per-build-tag: false
skip-tag: true
@@
-80,14
+85,25
@@
ignore-notify: false
wipe-workspace: true
prune: false
ignore-notify: false
wipe-workspace: true
prune: false
+ choosing-strategy: 'default'
- scm:
name: git-scm-gerrit
scm:
- git:
- scm:
name: git-scm-gerrit
scm:
- git:
+ url: '$GIT_BASE_HTTPS/$PROJECT'
+ branches:
+ - 'refs/heads/{branch}'
+ refspec: '{refspec}'
+ timeout: 15
+ per-build-tag: false
+ skip-tag: true
+ shallow-clone: false
+ use-author: false
+ ignore-notify: false
+ wipe-workspace: true
+ prune: false
choosing-strategy: 'gerrit'
choosing-strategy: 'gerrit'
- refspec: '$GERRIT_REFSPEC'
- <<: *git-scm-defaults
# triggers for Nordix and upstream Gerrits
- trigger:
# triggers for Nordix and upstream Gerrits
- trigger:
@@
-138,3
+154,13
@@
file-paths:
- compare-type: 'ANT'
pattern: '{files}'
file-paths:
- compare-type: 'ANT'
pattern: '{files}'
+
+# wrappers to use for jobs
+- wrapper:
+ name: nordixinfra-jjb-creds-wrapper
+ wrappers:
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: nordixinfra-jjb-creds
+ username: JJB_USERNAME
+ password: JJB_USERTOKEN