This commit is contained in:
R. Tyler Croy 2016-11-15 19:31:52 -08:00
parent dba69a6e01
commit 0750119fc6
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 11 additions and 23 deletions

34
Jenkinsfile vendored
View File

@ -1,34 +1,22 @@
#!/usr/bin/env groovy
parallel(jdk7: {
node('docker') {
docker.image('openjdk:7').inside {
echo 'im building'
sh 'echo "HELLO" > artifact.txt'
stash name: 'thething', includes: 'artifact.txt'
}
}
},
jdk8: {
node('docker') {
docker.image('openjdk:8').inside {
echo 'im building on 8'
}
}
}
)
node('docker') {
def container
stage('Build') {
checkout scm
container = docker.build('clusterhq:dameetup')
}
stage('Test') {
docker.image('redis').withRun { container ->
docker.image('maven').inside("--link ${container.id}:redis") {
unstash 'thething'
sh 'cat artifact.txt'
sh 'ls -lah'
}
container.withRun {
sh 'curl http://localhost'
}
}
stage('Deploy') {
docker.withRegistry {
container.push()
}
}
}