Merge pull request #23 from kemitix/hotfix/0.5.1
pom: fix accidental merge of SNAPSHOT into master
This commit is contained in:
commit
aa888c8b06
3 changed files with 18 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.5.1
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Fix accidental merge with SNAPSHOT version in to master
|
||||||
|
|
||||||
0.5.0
|
0.5.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,18 @@ pipeline {
|
||||||
git url: gitRepoUrl, branch: '**', credentialsId: 'github-kemitix'
|
git url: gitRepoUrl, branch: '**', credentialsId: 'github-kemitix'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('no SNAPSHOT in master') {
|
||||||
|
// checks that the pom version is not a snapshot when the current branch is master
|
||||||
|
// TODO: also check for SNAPSHOT when is a pull request with master as the target branch
|
||||||
|
when {
|
||||||
|
expression {
|
||||||
|
(env.GIT_BRANCH == 'master') &&
|
||||||
|
(readMavenPom(file: 'pom.xml').version).contains("SNAPSHOT") }
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
error("Build failed because SNAPSHOT version")
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Java 8') {
|
stage('Java 8') {
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -11,7 +11,7 @@
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>mon</artifactId>
|
<artifactId>mon</artifactId>
|
||||||
<version>0.6.0-SNAPSHOT</version>
|
<version>0.5.1</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
|
|
Loading…
Reference in a new issue