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

Unexpected behavior of pipelines, possibly due to symbol overlap

XMLWordPrintable

      Steps to reproduce

      1. docker run -p 8080:8080 jenkins/jenkins:2.249.1
      2. Select plugins to install: Uncheck all, select "Pipeline" (workflow-aggregator) only
      3. Create a Pipeline with the below script content
      4. Build it

      Pipeline script:

      node {
       git url: 'https://github.com/jenkinsci/workflow-aggregator-plugin/'
       sh 'ls -lA'
      } 

      Expected result:
      GitHub repo to be checked out
      or (more likely, as Git Plugin isn't installed)
      Build to fail, as the 'git' step does not exist

      Actual result:
      The 'git' statement seems to be silently dropped (interpreted as 'git' tool from git-client?). There is no hint to what the problem could be, it's like the pipeline is a different one.

      Started by user admin
      Running in Durability level: MAX_SURVIVABILITY
      [Pipeline] Start of Pipeline
      [Pipeline] node
      Running on Jenkins in /var/jenkins_home/workspace/pl
      [Pipeline] {
      [Pipeline] sh
      + ls -lA
      total 0
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: SUCCESS

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: