Giter VIP home page Giter VIP logo

Comments (5)

arendjantetteroo avatar arendjantetteroo commented on August 15, 2024

I was bitten by this as well. You can work around it by saving the config after enabling the project.

See lines 68 till 73
https://github.com/arendjantetteroo/jenkins-build-per-branch/blob/master/src/main/groovy/com/entagen/jenkins/JenkinsApi.groovy

I've updated my version to work with gradle 2.x, so I can't easily do a PR with this change.

It seems a bit of a hack, but it works for me

from jenkins-build-per-branch.

yakobe avatar yakobe commented on August 15, 2024

Hey, thanks for the answer! I am trying to implement that too. I have tried before and after enabling but the polling still does not work. After enabling cause the project to be disabled again (because the template job is diabled).
Are you sure that polling works again with the latest jenkins? Any help would be greatly appreciated

from jenkins-build-per-branch.

arendjantetteroo avatar arendjantetteroo commented on August 15, 2024

I'm on 1.632 and it works.

Isee that you do another disable /enable after saving the config. That might be the issue?
Maybe when it's disabled the polling is stopped again?

from jenkins-build-per-branch.

yakobe avatar yakobe commented on August 15, 2024

My template job is disabled so i need to force enable. I have tried various configurations (disable before and enable after, both before, both after, both before and after). Nothing worked. 😒
It appears that when you run post('job/' + missingJob.jobName + "/config.xml", missingJobConfig, [:], ContentType.XML) it overwrites the config again so the enable/disable bit is gone. And the polling still doesnt work.
So annoying that they change the core jenkins functionality without thinking about the consequences.
Do you know of any other api way to save the job again?

from jenkins-build-per-branch.

arendjantetteroo avatar arendjantetteroo commented on August 15, 2024

Ah, i have an already enabled job that i copy. I just post the complete config back because all settings are ok for me.

Maybe you can change the enabled/disabled bit in the config.xml before resaving it?

from jenkins-build-per-branch.

Related Issues (20)

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.