mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added artifacts
This commit is contained in:
parent
166476afe8
commit
d9f669a826
1 changed files with 11 additions and 0 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -12,8 +12,16 @@ pipeline{
|
|||
steps{
|
||||
sh 'docker image build -t spc-mvn .'
|
||||
sh 'docker image list'
|
||||
|
||||
}
|
||||
}
|
||||
stage('artifact') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: '**/target/spring-petclinic-3.1.0-SNAPSHOT.jar',
|
||||
onlyIfSuccessful: true
|
||||
junit testResults: '**/surefire-reports/TEST-*.xml'
|
||||
}
|
||||
}
|
||||
|
||||
stage('docker login'){
|
||||
steps{
|
||||
|
@ -31,6 +39,9 @@ pipeline{
|
|||
}
|
||||
stage("kubernetes deployment"){
|
||||
steps{
|
||||
sh """
|
||||
|
||||
"""
|
||||
sh 'kubectl apply -f deployement.yaml'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue