@@ -47,9 +47,11 @@ pipeline {
47
47
48
48
def releaseVersion = Version . parseReleaseVersion(params. RELEASE_VERSION )
49
49
def developmentVersion = Version . parseDevelopmentVersion(params. DEVELOPMENT_VERSION )
50
+ env. JRELEASER_DRY_RUN = params. RELEASE_DRY_RUN
50
51
echo " Performing full release for version ${ releaseVersion.toString()} "
51
52
52
- withMaven(mavenSettingsConfig : null , mavenLocalRepo : env. WORKSPACE_TMP + ' /.m2repository' ) {
53
+ withMaven(mavenSettingsConfig : params. RELEASE_DRY_RUN ? null : ' ci-hibernate.deploy.settings.maven' ,
54
+ mavenLocalRepo : env. WORKSPACE_TMP + ' /.m2repository' ) {
53
55
configFileProvider([configFile(fileId : ' release.config.ssh' , targetLocation : env. HOME + ' /.ssh/config' ),
54
56
configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : env. HOME + ' /.ssh/known_hosts' )]) {
55
57
withCredentials([// TODO: Once we switch to maven-central publishing (from nexus2) we need to add a new credentials
@@ -65,10 +67,11 @@ pipeline {
65
67
sshagent([' ed25519.Hibernate-CI.github.com' ]) {
66
68
sh ' mvn -v'
67
69
sh ' cat $HOME/.ssh/config'
68
- sh ' git clone https://github.com/hibernate/hibernate-release-scripts.git'
69
- env. RELEASE_GPG_HOMEDIR = env. WORKSPACE_TMP + ' /.gpg'
70
+ dir(' .release/scripts' ) {
71
+ sh ' git clone https://github.com/hibernate/hibernate-release-scripts.git .'
72
+ }
70
73
sh """
71
- bash -xe hibernate- release- scripts/release.sh ${ params.RELEASE_DRY_RUN ? '-d' : ''} \
74
+ bash -xe . release/ scripts/release.sh -j ${ params.RELEASE_DRY_RUN ? '-d' : ''} \
72
75
infra-extensions ${ releaseVersion.toString()} ${ developmentVersion.toString()}
73
76
"""
74
77
}
0 commit comments