# Default parameters #
######################
+ stream: master
branch: master
submodule-recursive: true
parameters:
- lf-infra-parameters:
project: '{project}'
+ stream: '{stream}'
branch: '{branch}'
- lf-infra-jjb-parameters:
jjb-version: '{jjb-version}'
Parameter to identify a Gerrit project. This is typically the
project repo path as exists in Gerrit.
For example: ofextensions/circuitsw
+ - string:
+ name: STREAM
+ default: '{stream}'
+ description: |
+ Stream is often set to the same name as 'branch' but can
+ sometimes be used as a name representing a project's release code
+ name.
- string:
name: GERRIT_PROJECT
default: '{project}'
mvn-opts: ''
mvn-params: ''
mvn-version: mvn33
+ stream: master
submodule-recursive: true
#####################
- lf-infra-parameters:
project: '{project}'
branch: '{branch}'
+ stream: '{stream}'
- lf-infra-maven-parameters:
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: '{submodule-recursive}'
- choosing-strategy: gerrit
+ choosing-strategy: default
- job-template:
name: '{project-name}-maven-release-{stream}'
branch: master
build-timeout: 10
git-url: '$GIT_URL/$GERRIT_PROJECT'
+ stream: '{stream}'
submodule-recursive: true
tox-dir: ''
tox-envs: ''
- lf-infra-parameters:
project: '{project}'
branch: '{branch}'
+ stream: '{stream}'
- lf-infra-tox-parameters:
tox-dir: '{tox-dir}'
tox-envs: '{tox-envs}'
set -e -o pipefail
set +u
-JIRA_LINK=$(git rev-list --format=%B --max-count=1 HEAD | grep -io 'http[s]*://jira\..*')
+JIRA_LINK=$(git rev-list --format=%B --max-count=1 HEAD | grep -io 'http[s]*://jira\..*' || true)
if [[ ! -z "$JIRA_LINK" ]]
then
echo 'Remove JIRA URLs from commit message'