Suppression des espaces pour la création de l'imag Docker

This commit is contained in:
wpetit 2019-02-05 11:54:29 +01:00
parent 90b666532d
commit df2c464665
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def buildDockerImage() {
def runTamarinScript = libraryResource 'com/cadoles/tamarin/run-tamarin.sh' def runTamarinScript = libraryResource 'com/cadoles/tamarin/run-tamarin.sh'
writeFile file:'run-tamarin.sh', text:runTamarinScript writeFile file:'run-tamarin.sh', text:runTamarinScript
def safeJobName = URLDecoder.decode(env.JOB_NAME).toLowerCase().replace('/', '-') def safeJobName = URLDecoder.decode(env.JOB_NAME).toLowerCase().replace('/', '-').replace(' ', '-')
def imageTag = "${safeJobName}-${env.BUILD_ID}" def imageTag = "${safeJobName}-${env.BUILD_ID}"
return docker.build("tamarin:${imageTag}", ".") return docker.build("tamarin:${imageTag}", ".")
} }