added Jenkinsfile

This commit is contained in:
VSAzima 2021-04-22 13:35:19 +04:00
parent e2fbc56130
commit 698dc7950f

30
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,30 @@
pipeline {
agent any
stages {
stage('pull') {
steps {
git branch: "main",
credentialsId: 'azima-git-ssh',
url: 'git://github.com/VSAzima/spring-petclinic'
}
}
stage('build') {
steps {
script {
docker.image('maven:3.3-jdk-8').inside {
// /var/jenkins_home/workspace/MeFirstPipelineJob
sh 'mvn -B clean package -Dcheckstyle.skip'
}
}
}
}
// }
// // stage('push') {
// // steps {
// // echo 'Pushing ...'
// //
// // }
// // }
// }
}
}