[JIRA] (OVIRT-1109) Create jobs parameter in manual system tests
eyal edri [Administrator] (oVirt JIRA)
jira at ovirt-jira.atlassian.net
Sun Feb 26 12:52:44 UTC 2017
[ https://ovirt-jira.atlassian.net/browse/OVIRT-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
eyal edri [Administrator] updated OVIRT-1109:
---------------------------------------------
Epic Link: OVIRT-400
> Create jobs parameter in manual system tests
> --------------------------------------------
>
> Key: OVIRT-1109
> URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1109
> Project: oVirt - virtualization made easy
> Issue Type: Task
> Reporter: Gil Shinar
> Assignee: infra
>
> You should do that by adding a dynamic parameter that'll have a groovy script such as:
> {code}
> import jenkins.model.*
> def list = []
> def matchedJobs = Jenkins.instance.items.findAll { job ->
> job.name =~ /build-artifacts/
> }
> matchedJobs.each { job ->
> if (!job.name.contains("archived_for_deletion")) {
> list << job.name.split('_')[0]
> }
> }
> return list.unique()
> {code}
> With the above script you'll have all project names. From the project name and the other parameters you can build any job's name:
> {code}
> {project}_{ovirt_version}_build-artifacts-{distro}-{arch}
> {code}
--
This message was sent by Atlassian JIRA
(v1000.784.2#100032)
More information about the Infra
mailing list