added artifacts

This commit is contained in:
sridhar 2023-09-09 15:58:38 +05:30
parent 166476afe8
commit d9f669a826

11
Jenkinsfile vendored
View file

@ -12,6 +12,14 @@ pipeline{
steps{ steps{
sh 'docker image build -t spc-mvn .' sh 'docker image build -t spc-mvn .'
sh 'docker image list' 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'
} }
} }
@ -31,6 +39,9 @@ pipeline{
} }
stage("kubernetes deployment"){ stage("kubernetes deployment"){
steps{ steps{
sh """
"""
sh 'kubectl apply -f deployement.yaml' sh 'kubectl apply -f deployement.yaml'
} }