Created
September 2, 2021 07:20
-
-
Save eliskvitka/f34ef57f5dd713e282d06e1f586bb16e to your computer and use it in GitHub Desktop.
[Jenkins] Build all jobs in folder from script console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
def folderName = "backend/mp_back" | |
def folderJobs = Jenkins.instance.getItemByFullName(folderName) | |
folderJobs.items.each { job -> | |
job.scheduleBuild2(5) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment