Merge pull request #17 from gresham-computing/DWN-38686_UpdateCorretto302
DWN-38686 Corretto updatepull/1601/head
commit
c53570bdd4
|
@ -11,7 +11,7 @@ orbs:
|
||||||
executors:
|
executors:
|
||||||
docker-executor:
|
docker-executor:
|
||||||
docker:
|
docker:
|
||||||
- image: 455456581940.dkr.ecr.eu-west-1.amazonaws.com/circleci-build-images:corretto-8u275
|
- image: 455456581940.dkr.ecr.eu-west-1.amazonaws.com/circleci-build-images:corretto-8u302
|
||||||
aws_auth:
|
aws_auth:
|
||||||
aws_access_key_id: $AWS_ACCESS_KEY_ID
|
aws_access_key_id: $AWS_ACCESS_KEY_ID
|
||||||
aws_secret_access_key: $AWS_SECRET_ACCESS_KEY
|
aws_secret_access_key: $AWS_SECRET_ACCESS_KEY
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Unreleased:
|
Unreleased:
|
||||||
|
- Updated JDK to Corretto 1.8.302
|
||||||
|
|
||||||
*1.3.3-GRESHAM:
|
*1.3.3-GRESHAM:
|
||||||
- Upgraded libraries with known vulnerabilities
|
- Upgraded libraries with known vulnerabilities
|
||||||
|
|
|
@ -1,127 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
tools {
|
|
||||||
maven 'Maven 3.6.3'
|
|
||||||
jdk 'Corretto 8.275'
|
|
||||||
}
|
|
||||||
environment {
|
|
||||||
VERSION = ''
|
|
||||||
NEW_VERSION = ''
|
|
||||||
}
|
|
||||||
parameters {
|
|
||||||
booleanParam(name: 'RELEASE', defaultValue: false, description: 'Release a new version of the open id connect component')
|
|
||||||
}
|
|
||||||
options {
|
|
||||||
// Only keep 10 builds in total
|
|
||||||
buildDiscarder(logRotator(numToKeepStr:'10', daysToKeepStr:'2'))
|
|
||||||
|
|
||||||
// Display timestamps
|
|
||||||
timestamps()
|
|
||||||
|
|
||||||
// Prevent concurrent builds
|
|
||||||
disableConcurrentBuilds()
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage ('Discover Version Number') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
def pom = readMavenPom file: 'pom.xml'
|
|
||||||
def currentVersion = pom.getVersion()
|
|
||||||
|
|
||||||
VERSION = currentVersion.substring(0, currentVersion.indexOf('-SNAPSHOT'))
|
|
||||||
|
|
||||||
def parts = VERSION.tokenize('-')
|
|
||||||
def currentGreshamVersion = parts[1].toInteger()
|
|
||||||
|
|
||||||
parts.remove(1)
|
|
||||||
NEW_VERSION = parts.join('-') + '-' + (currentGreshamVersion + 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('1.3.3 Release Build') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
return BRANCH_NAME == "1.3.x" && params.RELEASE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh "mvn versions:set -B -DnewVersion=$VERSION"
|
|
||||||
sh "mvn -N -B versions:update-child-modules"
|
|
||||||
script {
|
|
||||||
sh "git commit --all --message 'Creating Release $VERSION'"
|
|
||||||
sh "git tag --annotate v$VERSION --message 'Creating Release $VERSION'"
|
|
||||||
sh "git push origin HEAD:${BRANCH_NAME} --tags"
|
|
||||||
}
|
|
||||||
timeout(time: 10, unit: 'MINUTES') {
|
|
||||||
withMaven(options: [junitPublisher(disabled: true)]) {
|
|
||||||
sh "mvn -B -V -U -T4 clean deploy -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
success {
|
|
||||||
junit '**/target/surefire-reports/**/*.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('1.3.3 Snapshot Build') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
return BRANCH_NAME == "1.3.x" && !params.RELEASE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
timeout(time: 10, unit: 'MINUTES') {
|
|
||||||
withMaven(options: [junitPublisher(disabled: true)]) {
|
|
||||||
sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/ -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
success {
|
|
||||||
junit '**/target/surefire-reports/**/*.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Feature Branch Build') {
|
|
||||||
when {
|
|
||||||
not {
|
|
||||||
branch "1.3.x"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
timeout(time: 10, unit: 'MINUTES') {
|
|
||||||
withMaven(options: [junitPublisher(disabled: true)]) {
|
|
||||||
sh "mvn versions:set -B -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT"
|
|
||||||
sh "mvn -N -B versions:update-child-modules"
|
|
||||||
sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
success {
|
|
||||||
junit '**/target/surefire-reports/**/*.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Bump Development Version') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
return BRANCH_NAME == '1.3.x' && params.RELEASE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "mvn versions:set -DnewVersion=${NEW_VERSION}-SNAPSHOT --batch-mode"
|
|
||||||
sh "git commit --all --message 'New Development Version $NEW_VERSION-SNAPSHOT'"
|
|
||||||
sh "git push origin HEAD:${BRANCH_NAME}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
deleteDir()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue