mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 21:45:49 +00:00
Jenkinsfile
This commit is contained in:
parent
406396fede
commit
ad24d4ee27
1 changed files with 9 additions and 6 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -10,13 +10,16 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
stage('Build the code') {
|
stage('Build the code') {
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'openjdk:8-jdk-alpine'
|
|
||||||
args '-v /var/jenkins_home/.m2:/root/.m2'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
def buildContainer = docker.image('docker.loxon.eu/infra/angularcli:alpine').withRun('-v /var/jenkins_home/.m2:/root/.m2')
|
||||||
|
buildContainer.pull()
|
||||||
|
buildContainer.inside {
|
||||||
|
sh '''
|
||||||
|
./mvnw clean package -DskipTests
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
sh './mvnw clean package -DskipTests'
|
sh './mvnw clean package -DskipTests'
|
||||||
sh 'pwd'
|
sh 'pwd'
|
||||||
sh 'ls -la'
|
sh 'ls -la'
|
||||||
|
|
Loading…
Reference in a new issue