add generic Jenkinsfile for building task images
This commit is contained in:
25
dockerfiles/tasks/Jenkinsfile
vendored
Normal file
25
dockerfiles/tasks/Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user