add generic Jenkinsfile for building task images

This commit is contained in:
2019-02-09 22:20:22 -05:00
parent 72cf28aa56
commit 69ba22c9c3
9 changed files with 25 additions and 0 deletions

25
dockerfiles/tasks/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,25 @@
pipeline {
agent any
parameters {
choice(
name: 'IMAGE',
choices: ['ansible', 'apidocjs', 'composer', 'mondrian', 'php'],
description: 'What image would you like to build?'
)
}
stages {
stage('Build Image') {
steps {
//git credentialsId: 'f1f58215-c789-44a2-9b72-50e4425cb061', url: 'ssh://git@git.xai-corp.net:10022/xai-corp.net/provisioning.git'
checkout scm
sh 'ls'
dir("dockerfiles/tasks/$params.IMAGE") {
sh 'chmod +x build.sh && ls -l'
sh './build.sh'
}
}
}
}
}