Commit a38d25d8 authored by Eloy Lafuente's avatar Eloy Lafuente
Browse files

Merge branch 'support_mm_clone_jobs' into 'master'

Add support for cloning MM (Mobile) jobs.

See merge request integration/nightlyjobs!21
parents ff956d06 bb9ddf8d
......@@ -118,6 +118,18 @@ class CloneJobsFromViewTask {
search = 'WP' + nameNumber + '()'
replacement = 'WP' + targetPrefix + '()'
}
// If the job is a Mobile one (MM)
// (note this could go together with W and S jobs, but for future
// expansion we leave it apart, no matter it's a bit of duped code)
} else if (namePrefix == 'MM') {
if (nameNumber == '') { // The source is a master job.
search = 'Master()'
replacement = 'M' + targetPrefix + '()'
} else { // The source is a numerical branch job
search = 'M' + nameNumber + '()'
replacement = 'M' + targetPrefix + '()'
}
}
script = script.replace(search, replacement)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment