Why are Folder Properties key/value pairs not recognized in multi-branch pipeline job?

8 views
Skip to first unread message

ZillaYT

unread,
Nov 13, 2018, 12:02:05 PM11/13/18
to Jenkins Users
I installed the Folder Properties plug in, and define these

GIT_BRANC = feature/dev-1234-some-work
RUN_TESTS = true
DEPLOY_TO_SANDBOX = true

I then have this in my Jenkinsfile

def echoStr = """

****************************************************************************

Git branch: ${env.GIT_BRANCH}, Run tests: ${env.RUN_TESTS}, Deploy to sandbox: ${env.DEPLOY_TO_SANDBOX}

****************************************************************************

"""

println echoStr


and I get this in the console

****************************************************************************
Git branch: null, Run tests: null, Deploy to sandbox: null
****************************************************************************

Why is that?

Chris
Reply all
Reply to author
Forward
0 new messages