Git Product home page Git Product logo

ansible-jenkins-configuration-as-code's People

Contributors

bellackn avatar luctrate avatar tobias-richter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-jenkins-configuration-as-code's Issues

Question about reload approach

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!

changed github user from wcm_io_devops to wcm-io-devops??

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

HTTP error 401 HTTP Error 401: Unauthorized when running this role on a blank instance of Jenkins.

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:

  • name: "Deploy jcasc"
    become: true
    hosts: max-jenkins2
    vars:
    jenkins_casc_config_path_configure: true
    jenkins_casc_config_path: "/var/lib/jenkins/jcasc-folder"
    jenkins_casc_config_fileglobs:
    - config_demo.yml
    roles:
    • casc

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?

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.