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

P4_TICKET not exposed for .Groovy scripts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • p4 plugin 1.4.8
      Jenkins ver. 1.651.2
      Pipeline 2.4

      The P4_TICKET is accessible from Jenkins jobs that execute a bash script, but for jobs that use .Groovy scripts the P4_TICKET is inaccessible. A call to env.P4_TICKET returns null in a .Groovy script.

        1. example_console.PNG
          example_console.PNG
          25 kB
        2. example_console2.PNG
          example_console2.PNG
          24 kB
        3. example_groovy.PNG
          example_groovy.PNG
          6 kB
        4. example_groovy2.PNG
          example_groovy2.PNG
          28 kB

            Unassigned Unassigned
            mksmith Matthew Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: