fixed CI issues with maven
This commit is contained in:
parent
651a285a14
commit
c15d9bb659
1 changed files with 7 additions and 6 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
|
@ -1,21 +1,22 @@
|
||||||
#!groovy
|
#!groovy
|
||||||
// Jenkinsfile (Pipeline Script)
|
// Jenkinsfile (Pipeline Script)
|
||||||
node {
|
node {
|
||||||
// Configure environment
|
// Configure environment
|
||||||
env.REPO_URL = "repo.koc.se/zutil-java.git" //scm.getUserRemoteConfigs()[0].getUrl()
|
env.REPO_URL = "repo.koc.se/zutil-java.git" //scm.getUserRemoteConfigs()[0].getUrl()
|
||||||
env.BUILD_NAME = "BUILD-" + env.BUILD_ID
|
env.BUILD_NAME = "BUILD-" + env.BUILD_ID
|
||||||
|
|
||||||
|
stage('Checkout') {
|
||||||
|
git url: "https://" + env.REPO_URL
|
||||||
|
}
|
||||||
|
|
||||||
checkout scm
|
withMaven(jdk: "jdk8", maven: "m3.5", mavenLocalRepo: ".repository") {
|
||||||
|
|
||||||
withMaven(JDK: "JDK8") {
|
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
sh 'mvn clean compile'
|
sh 'mvn clean compile'
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
sh 'mvn surefire:test failsafe:integration-test'
|
sh 'mvn test'
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Package') {
|
stage('Package') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue