mvn dependecies and parent version update pipeline

16 views
Skip to first unread message

mr.Gray

unread,
Jul 8, 2021, 5:19:33 AM7/8/21
to Jenkins Developers
Hi,

I looking for best practice to keep all the dependencies and parent of maven project to up to date. And if there are new version available only then update the pom version and push to git (which will launch the build of app). I'm ok with running this manually or periodically.

I'm about to use the "mvn versions:display-dependency-updates" and reading the output if any new updates to desired dependencies (it would be nice to include by groupid) and mvn versions:update-parent to check the parent.

But the reading the output on pipeline feels a bit "hackish", also I have several of these apps, which also makes me feel should I use something else.

Simplified pom example:
App5
-- parent: app1, version1  <--- update pom version if new available
--dependency1: app2, version1  <--- update pom version if new available
--dependency2: app3, version1  <--- update pom version if new available
--dependency3: app4, version1  <--- do not update 

Any help would be appreciated, thank you in advance!

Ullrich Hafner

unread,
Jul 8, 2021, 6:37:13 AM7/8/21
to JenkinsCI Developers
Are you talking about dependencies in general? Then this is the wrong mailing list. 

If you are interested in how to update plugin dependencies. We all use dependabot [1] to keep them up to date.



--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6ce50a71-2627-44f1-b90b-56ff905edb32n%40googlegroups.com.

Mark Waite

unread,
Jul 8, 2021, 10:52:58 AM7/8/21
to jenkinsci-dev
That seems like a good case to review the video "Dependabot for Jenkins plugin development" .  If you're working on a Jenkins plugin, it offers good suggestions.  Many Jenkins repositories are using dependabot now.

Reply all
Reply to author
Forward
0 new messages