Jenkins: Build image inside empty directoy
This commit is contained in:
parent
ceb2641231
commit
d0cc889a44
1 changed files with 9 additions and 7 deletions
2
tests/modules/Jenkinsfile
vendored
2
tests/modules/Jenkinsfile
vendored
|
@ -3,6 +3,7 @@
|
|||
def prepareDocker () {
|
||||
def img
|
||||
stage('Prepare environment') {
|
||||
dir('.imagebuild') {
|
||||
def uid = sh returnStdout: true, script: 'id -u'
|
||||
writeFile file: 'Dockerfile', text: """
|
||||
FROM python:3.8-buster
|
||||
|
@ -11,6 +12,7 @@ def prepareDocker () {
|
|||
"""
|
||||
img = docker.build('local:test-all-comics')
|
||||
}
|
||||
}
|
||||
return img
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue