Giter VIP home page Giter VIP logo

Comments (3)

brucekaskel avatar brucekaskel commented on June 8, 2024 1

Thanks for your response.

I found this page: https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/

However this page clearly says that plugins should not be built for versions older than "2.364 for weekly releases, and 2.361.1 for LTS release" at this time.

So I now realize you cannot support my version of Jenkins. Thank you anyway. Maybe in the future I will be able to use this plugin when I am using a newer version of Jenkins.

Please feel free to close this Issue.

from add-changes-to-build-changelog-plugin.

danielomoto avatar danielomoto commented on June 8, 2024 1

Thanks for finding that article and letting me know the policy that plugins should follow in terms of old releases. Very informative! I'll close the issue like you said. I hope you find a way to accomplish what you want to do. 😄

from add-changes-to-build-changelog-plugin.

danielomoto avatar danielomoto commented on June 8, 2024

Hi, Brucekaskel! Thanks for the ticket! I really appreicate it.

That's a really good suggestion about supporting older versions. I assume there is a way to update the plugin to support really older versions (like 2.303), but I'm not quite for sure how to do it (this is my first plugin 😄). That being said, the plugin itself is really trivial on what it's doing under the hood. You could do something identical with a few lines of code if you had access to the jenkins model/api and the jenkins file system. Are those things something you have access to?

If so, you would just need to update the changelog.xml file (located in the build directory) and then reload the build in question from disk. For example, you could:

  1. copy and paste the xml contents from an existing changelog and format them to suite your new build's changes..
  2. call the reload endpoint from the jenkins rest api (e.g. myjenkinsurl.com/job/myjob/build/1234/reload via curl) or if you like to do it via the jenkins model, you can use the reload endpoint after getting the build from something like getBuildByNumber.

This can be done in a build step (if you're using a freestylebuild) or a pipeline.

Would that work for you?

from add-changes-to-build-changelog-plugin.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.