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

P4_TICKET not exposed for .Groovy scripts

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      p4 plugin 1.4.8
      Jenkins ver. 1.651.2
      Pipeline 2.4
    • Similar Issues:

      Description

      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.

        Attachments

        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

          Issue Links

            Activity

            mksmith Matthew Smith created issue -
            mksmith Matthew Smith made changes -
            Field Original Value New Value
            Attachment example_console.PNG [ 34363 ]
            Attachment example_groovy.PNG [ 34364 ]
            mksmith Matthew Smith made changes -
            Attachment example_groovy2.PNG [ 34365 ]
            mksmith Matthew Smith made changes -
            Attachment example_console2.PNG [ 34366 ]
            mksmith Matthew Smith made changes -
            Attachment example_groovy2.PNG [ 34365 ]
            mksmith Matthew Smith made changes -
            Attachment example_console2.PNG [ 34366 ]
            mksmith Matthew Smith made changes -
            Attachment example_groovy2.PNG [ 34367 ]
            mksmith Matthew Smith made changes -
            Attachment example_console2.PNG [ 34368 ]
            p4paul Paul Allen made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Hide
            p4paul Paul Allen added a comment -

            Ready for release.
            JENKINS-37584

            Show
            p4paul Paul Allen added a comment - Ready for release. JENKINS-37584
            p4paul Paul Allen made changes -
            Link This issue blocks JENKINS-37584 [ JENKINS-37584 ]
            p4paul Paul Allen made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            p4paul Paul Allen added a comment -

            Released in 1.4.10

            Show
            p4paul Paul Allen added a comment - Released in 1.4.10
            p4paul Paul Allen made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: