Jenkinsfile: use .take() instead of .substr()
This commit is contained in:
parent
3e197664ae
commit
f55332bbe7
|
@ -4,7 +4,7 @@ pipeline {
|
|||
agent any
|
||||
options { disableConcurrentBuilds() }
|
||||
environment {
|
||||
TMPDIR = "/tmp/${JOB_NAME.substring(0, 32)}-${BUILD_NUMBER}"
|
||||
TMPDIR = "/tmp/${JOB_NAME.take(32)}-${BUILD_NUMBER}"
|
||||
}
|
||||
stages {
|
||||
stage('Unit Tests (production environment)') {
|
||||
|
|
Loading…
Reference in New Issue