Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fdias-2548-maven-release-configu…
Browse files Browse the repository at this point in the history
…ration' into fdias-2560-improve-it-tests
  • Loading branch information
diasf committed Oct 7, 2024
2 parents cd664e4 + ae7fadd commit 4c74db5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pipeline {
booleanParam(name: 'skipBuild', defaultValue: true, description: 'Set to true to skip build stage')
booleanParam(name: 'skipUnitTests', defaultValue: true, description: 'Set to true to skip the unit tests')
booleanParam(name: 'skipIntegrationTests', defaultValue: true, description: 'Set to true to skip the integration tests')
booleanParam(name: 'deployOverride', defaultValue: false, description: 'Set to true to perform the deployment')
}

triggers {
Expand All @@ -24,6 +25,7 @@ pipeline {
}

environment {
ARTIFACTORY_DEPLOY=credentials('ICM_ARTIFACTORY_JENKINSCI')
DOCKER_HOST_EXT = sh(script: 'docker context ls --format "{{- if .Current -}} {{- .DockerEndpoint -}} {{- end -}}"', returnStdout: true)
.trim().replaceAll('tcp', 'https')
DOCKER_CERT_EXT = '/home/jenkins/.docker'
Expand Down Expand Up @@ -100,7 +102,12 @@ pipeline {
}

stage('Deploy') {
when { expression { params.branch == 'develop' } }
when {
anyOf {
expression { params.branch == 'develop' }
expression { params.deployOverride == true }
}
}
agent {
docker {
image 'openjdk:8u342-jdk'
Expand All @@ -109,7 +116,8 @@ pipeline {
}
steps {
echo 'Deploying artifacts.'
sh './mvnw deploy:deploy -s settings.xml'
sh 'env'
sh './mvnw -X deploy:deploy -s settings.xml'
}
}
}
Expand Down

0 comments on commit 4c74db5

Please sign in to comment.