Comments (5)
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.
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.
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.
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.
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)
- Couldn't find crumbIssuer for Jenkins HOT 1
- Caused by: java.lang.Exception: Unexpected failure on /job/build/doDelete: HTTP/1.1 403 Forbidden 403
- :syncWithRepo FAILED
- Support Multiple SCM Plugin HOT 2
- Could not find method groovy() for arguments [org.codehaus.groovy:groovy-all:1.8.8] on root project HOT 8
- Server Error 500 issues with scalability? HOT 3
- Need a bit more control over git branch name propagation
- Support for Nested View without views creation
- Unable to find any jobs matching template regex: ^(myProject-[^-]*)-(feature)$ HOT 1
- Issue when creating a new job from a new branch HOT 2
- Not requiring something in the middle between prefix and branch name HOT 2
- Incorrect branch names in newly spawned jobs HOT 4
- Columns of a nested view are not created in Jenkins ver. 1.609.1 HOT 4
- Downstream builds are updating with correct project name HOT 1
- NullPointerException while dryrunning and generating branches
- Does not work with version of 2.x of gradle
- Documentation page is down HOT 2
- Too "loose" regex in nested views
- Error 403 (forbidden) if security is enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-build-per-branch.