Im trying to get steps in pipeline to fecth variable defined on folderProperties like below using withFolderProperties but failing . Is it there any special syntax im missing?
trying the code below
pipeline {
agent { label 'dasm' }
stages {
stage('TRUNCATE TABLE'){
steps{ withFolderProperties {
bat 'psql --host=host --dbname=dbname --port=5444 --username=user -w -c "TRUNCATE TABLE ${env.myTable};"'}
}
}
question from:https://stackoverflow.com/questions/65851862/jenkins-pipeline-using-withfolderproperties