Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix autorelease log credentails
[releng/builder.git]
/
jjb
/
autorelease
/
autorelease-templates.yaml
diff --git
a/jjb/autorelease/autorelease-templates.yaml
b/jjb/autorelease/autorelease-templates.yaml
index 5280e00a3292df4bae64ee20acab2f547f783029..a17b29adc5cb40ab436b00d27218239081d53ae9 100644
(file)
--- a/
jjb/autorelease/autorelease-templates.yaml
+++ b/
jjb/autorelease/autorelease-templates.yaml
@@
-38,6
+38,7
@@
refspec: 'refs/heads/master'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
refspec: 'refs/heads/master'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
+ submodule-timeout: 10
choosing-strategy: default
wrappers:
choosing-strategy: default
wrappers:
@@
-61,6
+62,8
@@
build-node: '{build-node}'
cron: 'H 0 * * *'
java-version: openjdk8
build-node: '{build-node}'
cron: 'H 0 * * *'
java-version: openjdk8
+ mvn-global-settings: global-settings
+ mvn-settings: autorelease-settings
mvn-version: mvn35
extra-mvn-opts: ''
mvn-version: mvn35
extra-mvn-opts: ''
@@
-78,7
+81,7
@@
parameters:
- maven-exec:
parameters:
- maven-exec:
- maven-version: '
mvn35
'
+ maven-version: '
{mvn-version}
'
- lf-infra-parameters:
project: '{project}'
stream: '{stream}'
- lf-infra-parameters:
project: '{project}'
stream: '{stream}'
@@
-103,6
+106,10
@@
name: ARCHIVE_ARTIFACTS
default: '{archive-artifacts}'
description: Artifacts to archive to the logs server.
name: ARCHIVE_ARTIFACTS
default: '{archive-artifacts}'
description: Artifacts to archive to the logs server.
+ - string:
+ name: STAGING_PROFILE_ID
+ default: '{staging-profile-id}'
+ description: Nexus staging profile ID.
scm:
- git:
scm:
- git:
@@
-125,16
+132,19
@@
- timed: '{cron}'
builders:
- timed: '{cron}'
builders:
+ - lf-infra-pre-build
# force jenkins install of maven version before any shell scripts use it
- lf-maven-install:
mvn-version: '{mvn-version}'
- wipe-local-maven-repo
# force jenkins install of maven version before any shell scripts use it
- lf-maven-install:
mvn-version: '{mvn-version}'
- wipe-local-maven-repo
- - jacoco-nojava-workaround
+ -
lf-
jacoco-nojava-workaround
- shell: "./scripts/list-project-dependencies.sh"
- autorelease-determine-merge-order
- shell: "./scripts/list-project-dependencies.sh"
- autorelease-determine-merge-order
- - autorelease-cfp:
- autorelease-settings: 'autorelease-settings'
- global-settings: 'odl-global-settings'
+ - lf-provide-maven-settings:
+ global-settings-file: '{mvn-global-settings}'
+ settings-file: '{mvn-settings}'
+ - lf-infra-create-netrc:
+ server-id: '{mvn-staging-id}'
- autorelease-generate-release-patches
- autorelease-generate-artifact-versions
- autorelease-distribute-taglist
- autorelease-generate-release-patches
- autorelease-generate-artifact-versions
- autorelease-distribute-taglist
@@
-146,29
+156,28
@@
# to enable building in a single maven reactor afterwards.
- autorelease-fix-relative-paths
- maven-target:
# to enable building in a single maven reactor afterwards.
- autorelease-fix-relative-paths
- maven-target:
- maven-version: '
mvn35
'
+ maven-version: '
{mvn-version}
'
pom: 'pom.xml'
goals: |
clean deploy
$EXTRA_MVN_OPTS
-Pintegrationtests,repoBuild
-Dcheckstyle.skip=true
pom: 'pom.xml'
goals: |
clean deploy
$EXTRA_MVN_OPTS
-Pintegrationtests,repoBuild
-Dcheckstyle.skip=true
- -DaltDeploymentRepository=staging::default::file:
hide/from/pom/files/stage
+ -DaltDeploymentRepository=staging::default::file:
"$WORKSPACE"/m2repo
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
- settings: '
autorelease-settings
'
+ settings: '
{mvn-settings}
'
settings-type: cfp
settings-type: cfp
- global-settings: '
global-settings
'
+ global-settings: '
{mvn-global-settings}
'
global-settings-type: cfp
global-settings-type: cfp
- -
autorelease-maven-deploy
+ -
lf-maven-stage
- autorelease-get-integration-test-variables
- autorelease-maven-sources:
opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
- autorelease-get-integration-test-variables
- autorelease-maven-sources:
opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
- maven-version: 'mvn35'
- settings: 'autorelease-settings'
- global-settings: 'global-settings'
- - autorelease-maven-sources-post-process
+ maven-version: '{mvn-version}'
+ settings: '{mvn-settings}'
+ global-settings: '{mvn-global-settings}'
- shell: |
mkdir -p archives/
cp *.log *.prop $_
- shell: |
mkdir -p archives/
cp *.log *.prop $_
@@
-239,6
+248,7
@@
refspec: 'refs/heads/{branch}'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
refspec: 'refs/heads/{branch}'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
+ submodule-timeout: 10
choosing-strategy: default
wrappers:
choosing-strategy: default
wrappers:
@@
-250,6
+260,7
@@
- timed: '{obj:cron}'
builders:
- timed: '{obj:cron}'
builders:
+ - lf-infra-pre-build
# Fetch latest head of branch
- shell: |
git checkout $GERRIT_BRANCH
# Fetch latest head of branch
- shell: |
git checkout $GERRIT_BRANCH
@@
-300,6
+311,7
@@
refspec: 'refs/heads/master'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
refspec: 'refs/heads/master'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
+ submodule-timeout: 10
choosing-strategy: default
triggers:
choosing-strategy: default
triggers:
@@
-326,6
+338,7
@@
jenkins-ssh-credential: opendaylight-jenkins-ssh
builders:
jenkins-ssh-credential: opendaylight-jenkins-ssh
builders:
+ - lf-infra-pre-build
- autorelease-update-project-views
- autorelease-update-validate-projects
- lf-infra-push-gerrit-patch:
- autorelease-update-project-views
- autorelease-update-validate-projects
- lf-infra-push-gerrit-patch:
@@
-342,6
+355,19
@@
- job-template:
name: autorelease-version-bump-{stream}
- job-template:
name: autorelease-version-bump-{stream}
+
+ #####################
+ # Default variables #
+ #####################
+
+ mvn-global-settings: global-settings
+ mvn-settings: autorelease-settings
+ mvn-version: mvn35
+
+ #####################
+ # Job configuration #
+ #####################
+
project-type: freestyle
node: '{build-node}'
project-type: freestyle
node: '{build-node}'
@@
-377,7
+403,7
@@
and artifacts are not pushed to Nexus. Instead the build will be
performed using the goals "clean install".
- maven-exec:
and artifacts are not pushed to Nexus. Instead the build will be
performed using the goals "clean install".
- maven-exec:
- maven-version:
mvn35
+ maven-version:
'{mvn-version}'
scm:
- lf-infra-gerrit-scm:
scm:
- lf-infra-gerrit-scm:
@@
-386,6
+412,7
@@
refspec: 'refs/heads/{branch}'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
refspec: 'refs/heads/{branch}'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
+ submodule-timeout: 10
choosing-strategy: default
wrappers:
choosing-strategy: default
wrappers:
@@
-394,17
+421,14
@@
jenkins-ssh-credential: opendaylight-jenkins-ssh
builders:
jenkins-ssh-credential: opendaylight-jenkins-ssh
builders:
+ - lf-infra-pre-build
# force jenkins install of maven version before any shell scripts use it
# force jenkins install of maven version before any shell scripts use it
- - maven-target:
- maven-version: mvn35
- goals: '-version'
- settings: autorelease-settings
- settings-type: cfp
- global-settings: global-settings
- global-settings-type: cfp
- - autorelease-cfp
+ - lf-maven-install:
+ mvn-version: '{mvn-version}'
+ - lf-provide-maven-settings:
+ global-settings-file: '{mvn-global-settings}'
+ settings-file: '{mvn-settings}'
- shell: !include-raw-escape:
- shell: !include-raw-escape:
- - ../global-jjb/shell/lftools-install.sh
- version-bump.sh
publishers:
- version-bump.sh
publishers:
@@
-440,8
+464,9
@@
lftools-version: '{lftools-version}'
- string:
name: RELEASE
lftools-version: '{lftools-version}'
- string:
name: RELEASE
- description: Release to generate release notes for.
-
+ description: |
+ Release to generate release notes for.
+ Eg. Oxygen-SR1, Fluorine-SR2...
scm:
- lf-infra-gerrit-scm:
git-url: '$GIT_URL/$GERRIT_PROJECT'
scm:
- lf-infra-gerrit-scm:
git-url: '$GIT_URL/$GERRIT_PROJECT'
@@
-449,6
+474,7
@@
refspec: '$GERRIT_REFSPEC'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
refspec: '$GERRIT_REFSPEC'
jenkins-ssh-credential: opendaylight-jenkins-ssh
submodule-recursive: true
+ submodule-timeout: 10
choosing-strategy: default
wrappers:
choosing-strategy: default
wrappers:
@@
-468,6
+494,7
@@
branch-pattern: '**/{branch}'
builders:
branch-pattern: '**/{branch}'
builders:
+ - lf-infra-pre-build
- autorelease-generate-release-notes
publishers:
- autorelease-generate-release-notes
publishers:
@@
-476,11
+503,14
@@
- job-template:
name: '{project-name}-validate-autorelease-{stream}'
- job-template:
name: '{project-name}-validate-autorelease-{stream}'
- ############
- # Defaults #
- ############
+ ############
#########
+ # Default
variable
s #
+ ############
#########
java-version: openjdk8
java-version: openjdk8
+ mvn-global-settings: global-settings
+ mvn-settings: autorelease-settings
+ mvn-version: mvn35
#####################
# Job Configuration #
#####################
# Job Configuration #
@@
-536,9
+566,10
@@
forbidden-files: ''
builders:
forbidden-files: ''
builders:
+ - lf-infra-pre-build
- autorelease-checkout-gerrit-patch
- autorelease-compare-projects
- autorelease-checkout-gerrit-patch
- autorelease-compare-projects
- - jacoco-nojava-workaround
+ -
lf-
jacoco-nojava-workaround
- shell: "./scripts/list-project-dependencies.sh"
- autorelease-determine-merge-order
- autorelease-generate-release-patches
- shell: "./scripts/list-project-dependencies.sh"
- autorelease-determine-merge-order
- autorelease-generate-release-patches
@@
-548,7
+579,7
@@
# to enable building in a single maven reactor afterwards.
- autorelease-fix-relative-paths
- maven-target:
# to enable building in a single maven reactor afterwards.
- autorelease-fix-relative-paths
- maven-target:
- maven-version:
mvn35
+ maven-version:
'{mvn-version}'
pom: validate-pom.xml
goals: |
clean install dependency:tree
pom: validate-pom.xml
goals: |
clean install dependency:tree
@@
-557,12
+588,12
@@
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g'
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g'
- settings:
autorelease-settings
+ settings:
'{mvn-settings}'
settings-type: cfp
settings-type: cfp
- global-settings:
global-settings
+ global-settings:
'{mvn-global-settings}'
global-settings-type: cfp
- maven-target:
global-settings-type: cfp
- maven-target:
- maven-version:
mvn35
+ maven-version:
'{mvn-version}'
pom: pom.xml
goals: |
clean validate
pom: pom.xml
goals: |
clean validate
@@
-570,9
+601,9
@@
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
- settings:
autorelease-settings
+ settings:
'{mvn-settings}'
settings-type: cfp
settings-type: cfp
- global-settings:
global-settings
+ global-settings:
'{mvn-global-settings}'
global-settings-type: cfp
- shell: |
mkdir -p archives/
global-settings-type: cfp
- shell: |
mkdir -p archives/