Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 539991 - Do not run deploy steps in a container
Signed-off-by: Mickael Istria <mistria@redhat.com>
  • Loading branch information
mickaelistria committed Oct 11, 2018
1 parent 0c5be5f commit eecd78b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Jenkinsfile
Expand Up @@ -5,7 +5,6 @@ pipeline {
agent {
kubernetes {
label 'buildtestPod'
defaultContainer 'container'
yaml """
apiVersion: v1
kind: Pod
Expand All @@ -30,14 +29,17 @@ spec:
}
}
stage('Prepare-environment') {
steps {
sh 'npm config set cache="$(pwd)/target/npm-cache"'
container('container') {
steps {
sh 'npm config set cache="$(pwd)/target/npm-cache"'
}
}
}
stage('Build') {
steps {
sh 'mvn --version'
sh 'mvn clean verify -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -DskipTests -PpackAndSign -Dmaven.repo.local=/tmp/.m2/repository'
container('container') {
steps {
sh 'mvn clean verify -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -DskipTests -PpackAndSign -Dmaven.repo.local=/tmp/.m2/repository'
}
}
post {
always {
Expand Down

0 comments on commit eecd78b

Please sign in to comment.