Skip to content

Commit

Permalink
HSEARCH-3436 Set the appropriate Maven settings file when releasing
Browse files Browse the repository at this point in the history
This should not be necessary as the release scripts pass their own -s
option, but apparently it is ignored...
  • Loading branch information
yrodiere committed Nov 21, 2018
1 parent b9f60ec commit b5a96bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Expand Up @@ -334,6 +334,12 @@ deploySnapshot=$deploySnapshot"""
" This parameter must be set when RELEASE_VERSION is set."
)
}
if (!params.RELEASE_DRY_RUN && !helper.configuration.file?.deployment?.maven?.settingsId) {
throw new IllegalArgumentException(
"Missing deployment configuration in job configuration file." +
" Cannot deploy artifacts during the release."
)
}
}

if (params.RELEASE_DEVELOPMENT_VERSION) {
Expand Down Expand Up @@ -464,7 +470,7 @@ stage('Deploy') {
else if (performRelease) {
echo "Performing full release for version ${releaseVersion.toString()}"
node(NODE_PATTERN_BASE) {
helper.withMavenWorkspace {
helper.withMavenWorkspace(mavenSettingsConfig: params.RELEASE_DRY_RUN ? null : helper.configuration.file.deployment.maven.settingsId) {
sh "git clone https://github.com/hibernate/hibernate-noorm-release-scripts.git"
sh "bash -xe hibernate-noorm-release-scripts/prepare-release.sh search ${releaseVersion.toString()}"

Expand Down

0 comments on commit b5a96bc

Please sign in to comment.