-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extensions using Jenkins library #55
Comments
This would be useful, for sure. Updating these Jenkinsfiles can get ugly... |
This sounds good to me. @tedinski do you want to get started on this? |
I'm on a trip this week, but I'll get it done next week.
|
I've posted a start. The functions can be found here: https://github.com/melt-umn/jenkins-lib/blob/master/vars/melt.groovy The repo otherwise just a README at the moment, basically. I haven't started using/testing these yet. Next week. I thought I'd just invite any public comments on what I have there so far. (I'm in the middle of trying to figure out how to make My plan right now is to get copper, silver and ablec using these. Then add maybe a |
Done. All the extensions are using a shared library now. Even |
Right now we have duplicated Jenkinsfiles in every extension. This makes it difficult to fix up the build & test process for each extension all at once.
Jenkins pipelines support "shared libraries" : https://jenkins.io/doc/book/pipeline/shared-libraries/
If I understand this documentation correctly, we could do this:
Create a
melt-jenkins
repo, with the organization suggested in that link (probably just using thevars/
approach).Then we should be able to import that library by writing:
Inside each extension. I suspect we should then have each extension have a
Jenkinsfile
that looks like this:I expect our library would have:
ablecExtensionDefaultProperties
andsilverDefaultProperties
for ableC extensions and Silver projects generally. So we don't have to repeat their descriptions and the like.buildAbleCExtension
written all in one placenotifyBuild
doesn't need repeating everywhereThoughts?
The text was updated successfully, but these errors were encountered: