Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Perform Paligo updates - CLM-28670 (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-tita authored Jan 17, 2024
1 parent 09215a9 commit 2093c3d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Jenkinsfile.sonatype.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def jira = [
// Get jenkins plugin version
def version = getVersionFromBuildName(env.releaseBuild_NAME)

def segments = parseVersionString(version)
def confluenceVersion = segments.join('.')

pipeline {
agent { label 'ubuntu-zion' }
tools {
Expand Down Expand Up @@ -82,6 +85,27 @@ pipeline {
)
}
}
stage('Update Download and Compatibility Page') {
when {
expression { 'Production' == params?.environment }
}
steps {
// paligo: update plugin's version in the download and compatibility page
// https://sonatype.atlassian.net/wiki/spaces/HELP/pages/270172330/Automation+with+Paligo#Jenkins-Plugin-Version
updatePaligoContent contentId: '170404', updates: [
[
pattern: /<para[^>]*>[^<]+<\/para>/,
replacement: /<para>${confluenceVersion}<\/para>/
]]
// paligo: update plugin's links in the download and compatibility page
// https://sonatype.atlassian.net/wiki/spaces/HELP/pages/270172330/Automation+with+Paligo#Jenkins-Plugin-Download
updatePaligoContent contentId: '170410', updates: [
[
pattern: /nexus-jenkins-plugin-[-\d\.]+(.hpi)?/,
replacement: /nexus-jenkins-plugin-${version}.hpi/
]]
}
}
stage('Release JIRA Version') {
when {
expression { 'Production' == params?.environment }
Expand Down

0 comments on commit 2093c3d

Please sign in to comment.