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

Allow load command to read Jenkinsfile without occupying a node, or enable delayed execution after loading.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • groovy-plugin
    • None
    • Version 2.462.1

      I am using the Multi-Branch Pipeline plugin and dynamically generating a declarative Jenkinsfile from a stored template in the Git repository. For this process, I use the built-in node block. Once the Jenkinsfile is created, I attempt to load it using the load method, which works as expected.

      However, as soon as the declarative script is loaded, the load command tries to execute immediately. Since the pipeline is long-running and utilizes multiple nodes throughout its execution, the initial node used for creating the Jenkinsfile remains occupied, leading to resource contention.

      I would like to load the Jenkinsfile similarly to how readTrusted works, but without using a node block. Alternatively, I am looking for a way to introduce a delayed execution after the script is loaded, ensuring that the initial node is not occupied unnecessarily during the delay.                                                

            vjuranek vjuranek
            krishgcek Krishnan PR
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: