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

BUILD_TAG contains spaces when the pipeline name contains spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.263 running on Ubuntu server.

      When creating the a pipeline called "my pipeline" and using echo to print "env.BUILD_TAG", the printed value contains spaces.

      echo env.BUILD_TAG
      

      Resulting in:

      Running in Durability level: PERFORMANCE_OPTIMIZED
      [Pipeline] Start of Pipeline
      [Pipeline] echo
      jenkins-my pipeline-1
      [Pipeline] End of Pipeline

      This makes it hard to use the tag when integrating with other systems.

            95jonpet Peter Jonsson
            95jonpet Peter Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: