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

ExportXMLWordPrintable

    • Type: New Feature
    • Resolution: Not A Defect
    • Priority: Minor
    • Component/s: pipeline
    • Environment:
      Jenkins ver. 1.642.2 Pipeline 1.15

      We have two pipelines, which use a shared resource on one of the Stages. Let's say Pipeline1 uses resource X on stage "Testing" and Pipeline2 uses resource X on stage "Testing".
      Each pipeline runs as a separate job. Would it be somehow possible to instruct Pipeline1 to wait before entering stage "Testing", if Pipeline2 is already running on "Testing"? Smth like:

      //just as an assumption
      wait_if("Pipeline2").is_on_stage("Testing") //in a Jenkinsfile of Pipeline1
      

      I think some @NonCPS workaround is possible (based on pipeline global lbrary), but would be probably nice to have it out of the box.

            Assignee:
            Jesse Glick
            Reporter:
            Aleksandr Bakharev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: