Skip to content

Commit 56c3821

Browse files
chore(QTDI-1553): use snapshot profile (#1073)
* update Jenkinsfile and pom.xml for snapshot deployment
1 parent 9ebfa0a commit 56c3821

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ pipeline {
284284
deployOptions = "$skipOptions --activate-profiles private_repository -Denforcer.skip=true"
285285
}
286286

287+
// hack to ovewrite the skip of studio modules that we can't deploy in release mode into Sonatype repo
288+
// assume that we don't use this Jenkinsfile for release anymore
289+
deployOptions = deployOptions.replace("-Prelease", "-Psnapshot")
290+
287291
// By default the doc is skipped for standards branches
288292
Boolean skip_documentation = !(params.FORCE_DOC || isStdBranch)
289293
extraBuildParams = assemblyExtraBuildParams(skip_documentation)

pom.xml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,60 @@
20112011
</plugins>
20122012
</build>
20132013
</profile>
2014+
<profile>
2015+
<id>snapshot</id>
2016+
<build>
2017+
<plugins>
2018+
<plugin>
2019+
<groupId>org.sonatype.central</groupId>
2020+
<artifactId>central-publishing-maven-plugin</artifactId>
2021+
<extensions>true</extensions>
2022+
<configuration>
2023+
<publishingServerId>central.portal</publishingServerId>
2024+
<centralBaseUrl>https://central.sonatype.com</centralBaseUrl>
2025+
<failOnBuildFailure>true</failOnBuildFailure>
2026+
</configuration>
2027+
</plugin>
2028+
<plugin>
2029+
<groupId>org.apache.maven.plugins</groupId>
2030+
<artifactId>maven-source-plugin</artifactId>
2031+
<executions>
2032+
<execution>
2033+
<id>attach-sources</id>
2034+
<goals>
2035+
<goal>jar-no-fork</goal>
2036+
</goals>
2037+
</execution>
2038+
</executions>
2039+
</plugin>
2040+
<plugin>
2041+
<groupId>org.apache.maven.plugins</groupId>
2042+
<artifactId>maven-javadoc-plugin</artifactId>
2043+
<executions>
2044+
<execution>
2045+
<id>attach-javadocs</id>
2046+
<goals>
2047+
<goal>jar</goal>
2048+
</goals>
2049+
</execution>
2050+
</executions>
2051+
</plugin>
2052+
<plugin>
2053+
<groupId>org.apache.maven.plugins</groupId>
2054+
<artifactId>maven-gpg-plugin</artifactId>
2055+
<executions>
2056+
<execution>
2057+
<id>sign-artifacts</id>
2058+
<goals>
2059+
<goal>sign</goal>
2060+
</goals>
2061+
<phase>verify</phase>
2062+
</execution>
2063+
</executions>
2064+
</plugin>
2065+
</plugins>
2066+
</build>
2067+
</profile>
20142068
<profile>
20152069
<id>no-staging</id>
20162070
<build>

0 commit comments

Comments
 (0)