Can't use env variables in top leve agent section

This commit is contained in:
Ulrich Mohr 2022-01-31 15:01:45 +01:00
parent b98127cea6
commit 5b968f7e5a

View File

@ -1,11 +1,10 @@
pipeline {
environment {
DOCK_FILE_DIR = 'automation'
BUILDDIR = 'build-tests'
BUILDDIR = 'build-tests'
}
agent {
dockerfile {
dir DOCK_FILE_DIR
dir 'automation'
additionalBuildArgs '--no-cache'
reuseNode true
}