Pipeline is running stages even though previous stage failed

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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
          Grzegorz
        2. console-pipeline.txt
          2 kB
          Grzegorz
        3. pipeline_graph.png
          52 kB
          Grzegorz
        4. stage_view.png
          29 kB
          Grzegorz
        5. trigger-2.jenkinsfile
          3 kB
          Grzegorz

            Assignee:
            Eyal Ben Moshe
            Reporter:
            Grzegorz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: