Merge pull request #13 from kemitix/upgrade-tiles
Upgrade kemitix-maven-tiles to 0.5.2
This commit is contained in:
commit
78bb906cfa
2 changed files with 11 additions and 20 deletions
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
|
@ -3,33 +3,24 @@ pipeline {
|
|||
stages {
|
||||
stage('Prepare') {
|
||||
steps {
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
branches: [[name: '**']],
|
||||
extensions: [[$class: 'CleanBeforeCheckout']],
|
||||
userRemoteConfigs: [[credentialsId: 'github-kemitix', url: 'git@github.com:kemitix/conditional.git']]
|
||||
])
|
||||
git url: 'git@github.com:kemitix/conditional.git',
|
||||
branch: '**',
|
||||
credentialsId: 'github-kemitix'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw -B -U clean install'
|
||||
}
|
||||
}
|
||||
stage('Reporting') {
|
||||
steps {
|
||||
junit '**/target/surefire-reports/*.xml'
|
||||
archiveArtifacts '**/target/*.jar'
|
||||
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
||||
sh "mvn -B -U clean install"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
expression {
|
||||
env.GIT_BRANCH == 'master'
|
||||
}
|
||||
}
|
||||
when { expression { (env.GIT_BRANCH == 'master') } }
|
||||
steps {
|
||||
sh './mvnw -B -Dskip-Tests=true -P release deploy'
|
||||
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
||||
sh "mvn -B -U -P release deploy"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -16,7 +16,7 @@
|
|||
<assertj.version>3.8.0</assertj.version>
|
||||
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
|
||||
<tiles-maven-plugin.version>2.10</tiles-maven-plugin.version>
|
||||
<kemitix-tiles.version>0.5.1</kemitix-tiles.version>
|
||||
<kemitix-tiles.version>0.5.2</kemitix-tiles.version>
|
||||
<lombok.version>1.16.20</lombok.version>
|
||||
</properties>
|
||||
|
||||
|
|
Loading…
Reference in a new issue