Skip to content

add functionality to use freestyle templates for matrix jobs - #595

Open
JeremyMarshall wants to merge 1 commit into
jenkinsci:masterfrom
JeremyMarshall:force_clone
Open

add functionality to use freestyle templates for matrix jobs#595
JeremyMarshall wants to merge 1 commit into
jenkinsci:masterfrom
JeremyMarshall:force_clone

Conversation

@JeremyMarshall

Copy link
Copy Markdown
Contributor

Whist you can't change a job type once it exists, what is possible is to create a new job based on a template of a different type. I did this for freestyle and matrix jobs as that seemed the most obvious.

It works by adding or removing elements and changing the type. Hopefully it is extendible to swap between other job types by writing the class to coerce it

@jenkinsadmin

Copy link
Copy Markdown
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@JeremyMarshall

Copy link
Copy Markdown
Contributor Author

I did this over a year ago and don't have my repo anymore. There looks to be conflicts. Happy to bring it up to date if it is still viable and wanted

@jiff-infrastructure

Copy link
Copy Markdown

Can one of the admins verify this patch?

@CorevistCI

Copy link
Copy Markdown

Build finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants