wcm-io-devops / ansible-jenkins-configuration-as-code Goto Github PK
View Code? Open in Web Editor NEWAnsible role for configuring, deploying and reloading jenkins configuration as code
License: Apache License 2.0
Ansible role for configuring, deploying and reloading jenkins configuration as code
License: Apache License 2.0
Sorry for making an issue, I couldn't figure out another way to send in a question :/
I'm curious about the reload approach you are using, as compared to using the CASC_RELOAD_TOKEN approach described https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/features/configurationReload.md particularly given the linked page specifically mentions the groovy script approach is not recommended with the added context "Note: that running the above code in a pipeline will put this plugin in a bad state where the configuration cannot be reloaded at all until Jenkins is restarted. See jenkinsci/configuration-as-code-plugin#1227 for more info."
I suspect part of the reason is that CASC_RELOAD_TOKEN didn't exist before and/or was hard to use. But I'm also wondering if there is another advantage to the approach you are using and I'm just not seeing it.
Thanks!
Hi,
Have you changed the owner user from your repositories?
I've been using your roles from more than a year ago, and today I've started to get the following error when installing your role "jenkins_configuration_as_code":
- downloading role 'jenkins_configuration_as_code', owned by wcm_io_devops
- downloading role from https://github.com/wcm_io_devops/ansible-jenkins-configuration-as-code/archive/1.13.0.tar.gz
[ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - wcm_io_devops.jenkins_configuration_as_code was NOT installed successfully.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
I've tried to point to what I've supposed that is the correct URL and this solved the error but I've started to receive a new error when trying to download the role wcm_io_devops.jenkins_plugins used by ansible-jenkins-configuration-as-code ...
Thanks
I am very new to Jenkins so it is almost definitely an error on my part but I created a very simple role that installs and starts a Jenkins instance to the first step of the setup wizard (the initial password located at /var/lib/jenkins/secrets/initialAdminPassword)
I then tried to include this role like this:
I am requiring the role in a requirements file:
And when I run the whole thing it installs Jenkins then moves onto this roles tasks and fails at
TASK [wcm_io_devops.jenkins_facts : gather_jenkins_facts : execute gather script on jenkins instance.] ***
fatal: [jenkins]: FAILED! => {"changed": false, "msg": "HTTP error 401 HTTP Error 401: Unauthorized", "output": ""}
Any Ideas on what I am doing wrong? Or what could be causing the issue?
I understand this error usually would come if I had the wrong credentials being given but surely since the instance is blank there are no credentials yet?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.