Using global variables in Jenkins Pipeline

后端 未结 3 419
长发绾君心
长发绾君心 2020-12-30 23:16

I have tried all sort of ways but nothing seems to be working. Here is my jenkinsfile.

def ZIP_NODE
def CODE_VERSION
pipeline{
    /*A declarative pipeline*/         


        
3条回答
  •  旧时难觅i
    2020-12-31 00:05

    sh '''
    '''
    

    should be

    sh """
    """
    

    with single quotes the variables don't get processed.

提交回复
热议问题