Jenkins Plugin - How to update Ci/CD pipeline update

36 views
Skip to first unread message

Felicia Rosemond

unread,
Oct 23, 2024, 3:08:29 PM10/23/24
to Jenkins Developers
Hello,

I recently inherited a Jenkins plugin, Orka by MacStadium. I changed the Jenkins version used to develop the plugin from Java 8 to Java 17. My problem is that the build job is using Linux and Windows-8, which is causing issues. I need to find out where this exists and how to get it updated. 


Any advice given would be extremely helpful. 


Mark Waite

unread,
Oct 23, 2024, 3:12:38 PM10/23/24
to Jenkins Developers
On Wednesday, October 23, 2024 at 1:08:29 PM UTC-6 Felicia wrote:
Hello,

I recently inherited a Jenkins plugin, Orka by MacStadium. I changed the Jenkins version used to develop the plugin from Java 8 to Java 17. My problem is that the build job is using Linux and Windows-8, which is causing issues. I need to find out where this exists and how to get it updated. 

 
That's great!  Thanks for doing it.  https://www.jenkins.io/doc/developer/tutorial-improve/add-a-jenkinsfile/ provides a tutorial on changing the Jenkinsfile to use Java 17 and Java 21 for testing.

I did a "replay" of that job with a temporary copy of the revised Jenkinsfile.  Hopefully it will run as expected.

Mark Waite

Verachten Bruno

unread,
Oct 23, 2024, 3:15:48 PM10/23/24
to jenkin...@googlegroups.com
Hello Felicia,

You would have to change the content of the Jenkinsfile to build with
JDK17 and/or 21.
I can see this modification is not part of your PR yet:
https://github.com/jenkinsci/macstadium-orka-plugin/pull/133/files .

These days, the content of this file should look like this:
buildPlugin(
useContainerAgent: true, // Set to `false` if you need to use Docker
for containerized tests
configurations: [
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])
as stated in https://www.jenkins.io/doc/developer/tutorial-improve/add-a-jenkinsfile/
.
Once it's done, you will have to commit it, and a new build will start.
Depending on your status (maintainer or not), your build may switch to
your new Jenkinsfile, or you may have to ask a maintainer to replay
your build with your updated Jenkinsfile.

Hope this helps.
> --
> 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 visit https://groups.google.com/d/msgid/jenkinsci-dev/ce8c923b-dc0e-4b86-bfd2-bc55744d32f0n%40googlegroups.com.



--
Bruno Verachten
Reply all
Reply to author
Forward
0 new messages