[JIRA] (OVIRT-1109) Create jobs parameter in manual system tests

eyal edri (oVirt JIRA) jira at ovirt-jira.atlassian.net
Tue Dec 26 12:44:36 UTC 2017


     [ https://ovirt-jira.atlassian.net/browse/OVIRT-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

eyal edri updated OVIRT-1109:
-----------------------------
    Resolution: Won't Do
        Status: Done  (was: To Do)

> 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
(v1001.0.0-SNAPSHOT#100075)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/infra/attachments/20171226/5c45de38/attachment-0001.html>


More information about the Infra mailing list