fix jenkinsfile
This commit is contained in:
parent
219e85bdff
commit
f89c2032c6
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -2,8 +2,6 @@ node {
|
|||||||
def app
|
def app
|
||||||
|
|
||||||
stage('Clone repository') {
|
stage('Clone repository') {
|
||||||
/* Let's make sure we have the repository cloned to our workspace */
|
|
||||||
|
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,17 +10,9 @@ node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Test image') {
|
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
|
sh ./gradlew bootRun -Dng-tracker.check-run=true
|
||||||
app.inside {
|
app.inside {
|
||||||
sh 'echo "Tests passed"'
|
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")
|
|
||||||
}
|
|
||||||
}*/
|
|
Loading…
Reference in New Issue
Block a user