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

Pipeline is running stages even though previous stage failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • Jenkins 2.452.3 Artifactory Plugin 4.0.8 Pipeline 600.vb_57cdd26fdd7 Pipeline Graph Analysis Plugin 216.vfd8b_ece330ca_ Pipeline Graph View Plugin 313.v1322ce83d680

      Hi,

       

      I have a pipeline where in first stage we download artifacts from Artifactory (with 
      rtDownload) and then depending on content of files we schedule another pipeline with different parameters.

      Recently we updated Jenkins from version 2.289.3 to 2.452.3 (Windows installation with .war file)
      After this update we saw strange issue:

      • pipeline shows that it failed on on downloading artifacts from Artifactory
         - even tough it failed, artifacts were downloaded
      • 'download' stage failed
      • all following stages are shown as failed
      • steps of stages where executed (even tough those shouldn't be executed)
         
        In log files we can see following issues:
      • message about Jenkins restarting - I checked few times all service logs and all pipelines and it was running during that time
        -  NullPointerException coming from Artifactory plugin
         
         
        For me another strange thing is that logs from console view and pipeline console view yield different results in this case:
      • in pipeline console there is no information about Jenkins restart , but there is exception from Artifactory. And we can't see logs from following steps
      • console view shows information about restart but nothing about exceptions and we can see following logs
         
         
        I'm marking this as critical as for me this situation looks dangerous.
        I believe pipeline shouldn't execute steps that it was supposed to fail, which might lead to loss of data or corrupted data in case first step was supposed to be some kind of validation.
         
         
         
        Unfortunately I wasn't able to reproduce this issue. It happened 3 times in a row and then was gone.
         
         

        1. console_log.txt
          3 kB
        2. console-pipeline.txt
          2 kB
        3. pipeline_graph.png
          pipeline_graph.png
          52 kB
        4. stage_view.png
          stage_view.png
          29 kB
        5. trigger-2.jenkinsfile
          3 kB

            eyalbe Eyal Ben Moshe
            novinxy Grzegorz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: