fix jenkinsfile

This commit is contained in:
Anton Romanov 2022-11-08 13:01:33 +04:00
parent 219e85bdff
commit f89c2032c6

10
Jenkinsfile vendored
View File

@ -2,8 +2,6 @@ node {
def app
stage('Clone repository') {
/* Let's make sure we have the repository cloned to our workspace */
checkout scm
}
@ -12,17 +10,9 @@ node {
}
stage('Test image') {
/* Ideally, we would run a test framework against our image.
* For this example, we're using a Volkswagen-type approach ;-) */
sh ./gradlew bootRun -Dng-tracker.check-run=true
app.inside {
sh 'echo "Tests passed"'
}
}
}
/*stage('Push image') {
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}*/