Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44073

Can't use environment variables in jenkinsfile script path for pipelines from SCM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • pipeline
    • Latest Windows Server 2016 Standard
      Latest Jenkins + all plugins up to date
      SCM plugin: PlasticSCM Plugin

      PlasticSCM requires a system-wide unique workspace name. Therefore we use workspaces like "Pipelines_${NODE_NAME}" for check-out.

      When specifying the jenkinsfile (Script Path) for a pipeline job configuration the ${NODE_NAME} placeholder is not evaluated correctly. 

      Please see the attached inital_config.png for a pipeline configuration using PlasticSCM.

      When the job is run, there will be an ERROR: Jenkinsfile not found. As seen in attached error.png. 

        1. error.PNG
          98 kB
          Benjamin Buchfink
        2. inital_config.PNG
          37 kB
          Benjamin Buchfink

            Unassigned Unassigned
            swsbb Benjamin Buchfink
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: