mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-11 01:30:19 +00:00
30 lines
516 B
Groovy
30 lines
516 B
Groovy
node {
|
|
def app
|
|
|
|
/* stage('Clone repository') {
|
|
sh '/usr/bin/env'
|
|
checkout scm
|
|
}*/
|
|
|
|
stage('Build image') {
|
|
sh '/usr/bin/env'
|
|
/* Multi-Branch Pipeline works with env.BRANCH_NAME*/
|
|
app = docker.build("sos-milter:${env.BRANCH_NAME}","--pull --label BUILD_URL=${env.BUILD_URL} .")
|
|
}
|
|
|
|
stage('Test image') {
|
|
app.inside {
|
|
sh '/usr/bin/env'
|
|
sh '/bin/ps auxwwf'
|
|
}
|
|
}
|
|
|
|
stage('Push image') {
|
|
app.push()
|
|
}
|
|
|
|
stage('Cleanup') {
|
|
sh 'echo "TODO: cleanup!"'
|
|
}
|
|
}
|