Skip to content

Commit

Permalink
Merge pull request #248 from jenkins-infra/master
Browse files Browse the repository at this point in the history
Backports changes from weekly to LTS 2.332 line
  • Loading branch information
dduportal authored Jun 10, 2022
2 parents e3d53f7 + e5a8e1f commit 950ff21
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/1-lts-release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This role should rotate between LTS releases

- [ ] Merge backporting PR in jenkinci/jenkins using a merge commit (do not squash)

- [ ] Retrieve the url for the RC from the commit status (continuous-integration/jenkins/incrementals) of the last build on the stable branch (requires a passing build). You will get something like https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/cli/2.303.2-rc31385.6eec6c02fc3d/, replace `cli` with `jenkins-war`, visit the page and copy the URL to the war file, for the earlier example it would be https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.303.2-rc31385.6eec6c02fc3d/jenkins-war-2.303.2-rc31385.6eec6c02fc3d.war. If incrementals are broken you can deploy a build from your own machine with `mvn -e clean deploy -DskipTests=true`.
- [ ] Retrieve the url for the RC from the commit status (Jenkins Incrementals Publisher / Incrementals) of the last build on the stable branch (requires a passing build). Visit the `jenkins-war` URL and copy the URL of the war file, which would be something like https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.303.2-rc31385.6eec6c02fc3d/jenkins-war-2.303.2-rc31385.6eec6c02fc3d.war. If incrementals are broken you can deploy a build from your own machine with `mvn -e clean deploy -DskipTests=true`.

- [ ] Publish a pre-release [Github release](https://github.com/jenkinsci/jenkins/releases), e.g. [sample](https://github.com/jenkinsci/jenkins/releases/tag/jenkins-2.289.2-rc) currently we don't have a changelog for RCs

Expand Down Expand Up @@ -94,4 +94,4 @@ This role should rotate between LTS releases

- [ ] Confirm that the images are available at [Docker hub](https://hub.docker.com/r/jenkins/jenkins/tags)

- [ ] [Update ci.jenkins.io](https://github.com/jenkins-infra/runbooks/tree/master/ci#upgrading-jenkins) to the new LTS release (note: repo is private, requires infra team membership)
- [ ] Create a [helpdesk](https://github.com/jenkins-infra/helpdesk/issues) ticket to update `ci.jenkins.io`, `trusted.ci`, `cert.ci` and `release.ci` to the new LTS release, [example](https://github.com/jenkins-infra/helpdesk/issues/2816)
4 changes: 1 addition & 3 deletions Jenkinsfile.d/core/package
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pipeline {
agent {
kubernetes {
label 'package-linux'
yamlFile 'PodTemplates.d/package-linux.yaml'
workingDir '/home/jenkins/agent'
}
Expand All @@ -15,7 +14,7 @@ pipeline {
'stable-rc',
'security'
],
description: 'Define which Jenkins Release we are packaging for. https://git.io/Jv7Nr',
description: 'Define which Jenkins Release we are packaging for. https://github.com/jenkins-infra/release/tree/master/profile.d',
name: 'RELEASE_PROFILE'
)
string(
Expand Down Expand Up @@ -256,7 +255,6 @@ pipeline {
// as the step 'container' is known to not be working
agent {
kubernetes {
label 'packaging-windows'
yamlFile 'PodTemplates.d/package-windows.yaml'
}
}
Expand Down
3 changes: 1 addition & 2 deletions Jenkinsfile.d/core/release
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
pipeline {
agent {
kubernetes {
label 'release-linux'
yamlFile 'PodTemplates.d/release-linux.yaml'
}
}
Expand All @@ -22,7 +21,7 @@ pipeline {
'stable-rc',
'weekly'
],
description: 'Define which release profile we are going to use. https://git.io/Jv7Nr',
description: 'Define which release profile we are going to use. https://github.com/jenkins-infra/release/tree/master/profile.d',
name: 'RELEASE_PROFILE'
)
string(
Expand Down
1 change: 0 additions & 1 deletion Jenkinsfile.d/core/stable
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pipeline {

agent {
kubernetes {
label 'release-stable'
}
}

Expand Down
1 change: 0 additions & 1 deletion Jenkinsfile.d/core/stable-rc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pipeline {

agent {
kubernetes {
label 'release-stable-rc'
}
}

Expand Down
1 change: 0 additions & 1 deletion Jenkinsfile.d/core/weekly
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pipeline {

agent {
kubernetes {
label 'release-weekly'
}
}

Expand Down
2 changes: 1 addition & 1 deletion PodTemplates.d/package-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
containers:
- name: jnlp
image: jenkinsciinfra/packaging:2.1.9
image: jenkinsciinfra/packaging:2.1.41
imagePullPolicy: "IfNotPresent"
env:
- name: "HOME"
Expand Down
2 changes: 1 addition & 1 deletion PodTemplates.d/package-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
jenkins/default-release-jenkins-agent: true
spec:
containers:
- image: "jenkins/inbound-agent:4.3-9-windowsservercore-1809"
- image: "jenkins/inbound-agent:4.13-2-jdk11-nanoserver-1809"
imagePullPolicy: "Always"
name: "jnlp"
resources:
Expand Down
4 changes: 1 addition & 3 deletions PodTemplates.d/release-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ metadata:
spec:
containers:
- name: jnlp
image: jenkinsciinfra/packaging:2.1.9
image: jenkinsciinfra/packaging:2.1.41
imagePullPolicy: "IfNotPresent"
env:
- name: "HOME"
value: "/home/jenkins/agent/workspace"
- name: "MAVEN_OPTS"
value: "-Xmx8g -Xms8g"
- name: "JENKINS_JAVA_BIN"
value: "/opt/jdk-11/bin/java"
resources:
limits:
memory: "16Gi"
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ At this stage, we are going to retrieve the Java code, release a new version usi
It's important to notice that we do not use the maven release plugin to checkout git repositories neither to push changes. This allow us to release from a different git repository than the one defined in the pom.xml. We also need to be able to push commits to a different repository than the one defined in the pom.xml.

. link:http://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html#localCheckout[localCheckout] must be set to true
. link:http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#pushChanges[puchChanges] must be set to false
. link:http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#pushChanges[pushChanges] must be set to false


==== Steps
Expand Down
3 changes: 2 additions & 1 deletion profile.d/components/remoting
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
RELEASE_GIT_BRANCH=master
# Releases from the master branch now use JEP-229, not this release process
RELEASE_GIT_BRANCH=stable-4.13.x
[email protected]:jenkinsci/remoting.git
[email protected]
GIT_NAME="Jenkins Release Bot"
Expand Down
13 changes: 10 additions & 3 deletions utils/release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function configureKeystore(){
case "$SIGN_CERTIFICATE" in
*.pem )
openssl pkcs12 -export \
-legacy `# https://github.com/openssl/openssl/issues/11672` \
-out "$SIGN_KEYSTORE" \
-in "${SIGN_CERTIFICATE}" \
-password "pass:$SIGN_STOREPASS" \
Expand All @@ -85,8 +86,14 @@ function configureKeystore(){
*.pfx )
# pfx file download from azure key vault are not password protected, which is required for maven release plugin
# so we need to add a new password
openssl pkcs12 -in "${SIGN_CERTIFICATE}" -out tmpjenkins.pem -nodes -passin pass:""
openssl pkcs12 \
-in "${SIGN_CERTIFICATE}" \
-legacy `# https://github.com/openssl/openssl/issues/11672` \
-out tmpjenkins.pem \
-nodes \
-passin pass:""
openssl pkcs12 -export \
-legacy `# https://github.com/openssl/openssl/issues/11672` \
-out "$SIGN_KEYSTORE" \
-in tmpjenkins.pem \
-password "pass:$SIGN_STOREPASS" \
Expand Down Expand Up @@ -429,7 +436,7 @@ function stageRelease(){
# 2020-06-24: --no-transfer-progress doesn't seem to be fully suported in maven release plugin
# This workaround can be reverted once MRELEASE-1048 is fixed
# https://issues.apache.org/jira/browse/MRELEASE-1048
mvn -B \
mvn -V -B \
"-DstagingRepository=${MAVEN_REPOSITORY_NAME}::default::${MAVEN_REPOSITORY_URL}/${MAVEN_REPOSITORY_NAME}" \
-s settings-release.xml \
--no-transfer-progress \
Expand Down Expand Up @@ -567,7 +574,7 @@ function main(){
--showPackagingPlan) echo "Show Packaging Plan" && showPackagingPlan ;;
--promoteStagingMavenArtifacts) echo "Promote Staging Maven Artifacts" && promoteStagingMavenArtifacts ;;
--promoteStagingGitRepository) echo "Promote Staging Git Repository" && promoteStagingGitRepository ;;
--rollback) echo "Rollback release $RELEASE_SCM_TAG" && rollblack ;;
--rollback) echo "Rollback release $RELEASE_SCM_TAG" && rollback ;;
--stageRelease) echo "Stage Release" && stageRelease ;;
--packaging) echo 'Execute packaging makefile, quote required around Makefile target' && packaging "$2";;
--syncMirror) echo 'Trigger mirror synchronization' && syncMirror ;;
Expand Down

0 comments on commit 950ff21

Please sign in to comment.