Skip to content

Commit

Permalink
Simplifies release build
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickGotthard committed Nov 10, 2018
1 parent 665cabb commit c56c4a4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
28 changes: 28 additions & 0 deletions Jenkinsfile-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pipeline {

agent any

tools {
jdk 'Java 8'
maven 'Maven 3.5.4'
}

parameters {
string(name: 'releaseVersion')
string(name: 'nextVersion')
}

stages {
stage('Build') {
steps {
sh 'mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$releaseVersion'
sh 'mvn clean deploy -P release'
sh 'mvn scm:checkin "-Dmessage=Updates version to $releaseVersion"'
sh 'mvn scm:tag -Dtag=$releaseVersion'
sh 'mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$nextVersion'
sh 'mvn scm:checkin "-Dmessage=Updates version to $nextVersion"'
}
}
}

}
File renamed without changes.
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -49,13 +50,6 @@
</developer>
</developers>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down Expand Up @@ -193,6 +187,12 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit c56c4a4

Please sign in to comment.