Skip to content

Commit 2981040

Browse files
marko-bekhtakoentsje
authored andcommitted
HBX-3216 Updates for the new release scripts
1 parent 4035b33 commit 2981040

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

ci/release/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pipeline {
9595
usernamePassword(credentialsId: 'central.sonatype.com', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
9696
usernamePassword(credentialsId: 'gradle-plugin-portal-api-key', passwordVariable: 'GRADLE_PUBLISH_SECRET', usernameVariable: 'GRADLE_PUBLISH_KEY'),
9797
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')]) {
98-
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
98+
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate-ci.frs.sourceforge.net']) {
9999
sh 'cat $HOME/.ssh/config'
100100
dir('.release/scripts') {
101101
sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git .'

gradle/pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@
243243
<value>true</value>
244244
</property>
245245
</activation>
246+
<properties>
247+
<deploy.publish.gradle.plugin>clean</deploy.publish.gradle.plugin>
248+
</properties>
246249
<build>
247250
<plugins>
248251
<plugin>
@@ -255,7 +258,7 @@
255258
<configuration>
256259
<executable>${gradle.executable}</executable>
257260
<arguments>
258-
<argument>publishPlugins</argument>
261+
<argument>${deploy.publish.gradle.plugin}</argument>
259262
<argument>publishPluginMavenPublicationToStagingRepository</argument>
260263
<argument>-PprojectVersion=${project.version}</argument>
261264
<argument>-Ph2Version=${h2.version}</argument>
@@ -273,6 +276,18 @@
273276
</plugins>
274277
</build>
275278
</profile>
279+
<profile>
280+
<id>plugin-release</id>
281+
<activation>
282+
<property>
283+
<name>publishPlugin</name>
284+
<value>true</value>
285+
</property>
286+
</activation>
287+
<properties>
288+
<deploy.publish.gradle.plugin>publishPlugins</deploy.publish.gradle.plugin>
289+
</properties>
290+
</profile>
276291
</profiles>
277292

278293
</project>

0 commit comments

Comments
 (0)