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

replay-pipeline fails if previous replay resulted in Jenkinsfile syntax error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Incomplete
    • pipeline
    • None

    Description

      Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

      java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile
      
      ERROR: Not authorized to replay builds of this job
      

      I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

      Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

      Steps to reproduce:
      1. Create Jenkinsfile with syntax error
      2.

      java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

      3. Wait for the build to fail
      4.

      java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

      Result of the last call:

      ERROR: Not authorized to replay builds of this job
      

      To make it work again, use replay job from the UI in Jenkins and paste a Jenkinsfile without syntax error, wait for the build to pass, now using CLI will work also.

      Attachments

        Issue Links

          Activity

            krzyk krzyk created issue -
            krzyk krzyk made changes -
            Field Original Value New Value
            Description Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Steps to reproduce:
            1. Create Jenkinsfile with syntax error
            2. java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile
            3. Wait for the build to fail
            4. java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job

            krzyk krzyk made changes -
            Description Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Steps to reproduce:
            1. Create Jenkinsfile with syntax error
            2. java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile
            3. Wait for the build to fail
            4. java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job

            Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Steps to reproduce:
            1. Create Jenkinsfile with syntax error
            2. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}
            3. Wait for the build to fail
            4. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job
            {code}
            krzyk krzyk made changes -
            Description Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Steps to reproduce:
            1. Create Jenkinsfile with syntax error
            2. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}
            3. Wait for the build to fail
            4. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job
            {code}
            Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Steps to reproduce:
            1. Create Jenkinsfile with syntax error
            2. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}
            3. Wait for the build to fail
            4. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job
            {code}

            To make it work again, use replay job from the UI in Jenkins and paste a Jenkinsfile without syntax error, wait for the build to pass, now using CLI will work also.
            krzyk krzyk made changes -
            Description Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            Steps to reproduce:
            1. Create Jenkinsfile with syntax error
            2. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}
            3. Wait for the build to fail
            4. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job
            {code}

            To make it work again, use replay job from the UI in Jenkins and paste a Jenkinsfile without syntax error, wait for the build to pass, now using CLI will work also.
            Most of the time replay-pipeline works correctly, but in some rare cases it stops working for day or so, just out ot the blue.

            {code}
            java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile

            ERROR: Not authorized to replay builds of this job
            {code}

            I'm using ssh keys for authorization, few minutes ago it was working, I disconnected from VPN and connected again and now I get the above error. This is second time it is happening.

            Is there some cache on the jenkins side that remembers my IP address for authorization purposes?

            *Steps to reproduce:*
            1. Create Jenkinsfile with syntax error
            2. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}
            3. Wait for the build to fail
            4. {code}java -jar ~/jenkins-cli.jar -s http://ltxl1168.sgdcelab.sabre.com:8080 replay-pipeline "Trip-Source-master" < Jenkinsfile{code}

            Result of the last call:
            {code}
            ERROR: Not authorized to replay builds of this job
            {code}

            To make it work again, use replay job from the UI in Jenkins and paste a Jenkinsfile without syntax error, wait for the build to pass, now using CLI will work also.
            krzyk krzyk made changes -
            Summary replay-pipeline randomly fails to authorize replay-pipeline fails if previous replay resulted in failed build
            krzyk krzyk made changes -
            Summary replay-pipeline fails if previous replay resulted in failed build replay-pipeline fails if previous replay resulted in Jenkinsfile syntax error
            jglick Jesse Glick made changes -
            Component/s cli [ 15624 ]
            jglick Jesse Glick added a comment -

            Can hardly guess what is going on here. Do you have any steps to reproduce from scratch? Could be some problem with your authentication (security realm), etc.

            jglick Jesse Glick added a comment - Can hardly guess what is going on here. Do you have any steps to reproduce from scratch? Could be some problem with your authentication (security realm), etc.
            jglick Jesse Glick made changes -
            Resolution Incomplete [ 4 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170701 ] JNJira + In-Review [ 198927 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-37589 [ JENKINS-37589 ]

            People

              jglick Jesse Glick
              krzyk krzyk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: