mlabouardy / butler Goto Github PK
View Code? Open in Web Editor NEWExport/Import Jenkins jobs & plugins ๐ค
License: MIT License
Export/Import Jenkins jobs & plugins ๐ค
License: MIT License
is there any way to pass nocertificatecheck parameter ,since our Jenkins uses self signed when i run butler command it says "Get https://xxxxxx8443/api/xml: x509: certificate signed by unknown authority"
-noCertificateCheck as parameter to butler
I'm getting Job couldn't not be imported: check if it is already existing and verify all plugins used in this job are installed on the target jenkins instance
.
There needs to be a way to get more details, otherwise this is very hard to troubleshoot. All the plugins used in the job seem to be in place. I went through the exercise of tweaking all the plugin versions in the imported config.xml to match the target server to no avail.
None
Print additional (diagnostic) info on all failures.
Not needed
I keep getting Unauthorized 401 when I use the butler to import to my Jenkins .
my jenkins is
Earlier, I used to run the export tasks using butler.Now, recently when I check today, the export tasks are not running for jobs.But working for plugins.
And the plugins exported, I tried to import but getting import errors like for email-ext.
Also, one more issue, how to manage export/import for jenkins user with singlesignon?
No commits since Dec. 2018
If there is any active fork please add the link in this discussion
I am trying to export the jobs from a Jenkins ver. 1.643 installation, but when i run the command i get absolutely not output at all. Using the same command against a 2.121 instance works. Does this mean that butler only works for jenkins >=2?
Not to much of an issue. But I had a rare case on a Jenkins installation where I had disabled CSRF & tried running butler jobs import & received a 404 response.
Maybe instead of saying Not found 404 - indicate that the program was unable to retrieve a crumb ( because some people disable it ).
@mlabouardy @icereed ### Description
While importing plugins, I am getting error message "plugins cannot be installed" on Jenkins version above 2.190 onwards.
Up to which version of Jenkins provides support ?
If it doesn't provide the support then please provide support for higher version of Jenkins.
Hi there,
I just noticed that butler
fails to import jobs, when Jenkins runs behind a self signed TLS certificate:
macbookpro:jenkins phil$ butler jobs import --server jenkins.example.com --username admin --password <my-secret>
Import job: Git_Sync
Get https://jenkins.example.com:443/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb): x509: certificate signed by unknown authority
None
Would it be possible to add an argument --skip-tls-check
or something similar do disable the check if the TLS certificate is officially signed?
None
Thanks
Regards,
Philip
Ideally there should be a prompt or method to read a file for user/password handling. Having this in my bash history isn't ideal.
Crude hackish workaround
./butler jobs export --server https://udajenkins:8444 --username mtdeguzis --password $(read -s password && echo $password)
Jenkins can and should be run over SSL/https. This utility does not allow you to specify https. Does it handle the protocol?
./butler jobs export --server https://myhost:port--username mtdeguzis --password $(read -s password && echo $password)
Get http://https//myhost:port/view/all/api/xml: dial tcp: lookup https on *************:53: no such host
When using Folders plugin and Multibranch plugin the structure become a tree like:
jobs:
Butler is exporting only the foldernameA and foldernameB xml that does not contain the rest of the tree
add --recursive
with short form -r
and export the whole tree when present
Or do it recursive by default and add --no-recursive
as option
Our project Jenkins is set up for external access over an SSH tunnel only. Jenkins URL
(Manage System > Jenkins Location) = http://localhost:58080/
: the tunneled URL.
Locally on the same server, Jenkins is available over http://localhost:8080. If I try to run jobs export on the same server over http://localhost:8080, Butler fails.
Workaround: configure Jenkins temporarily to use the same URL.
N/A
Fix this
Terminal log:
$ butler jobs export --server localhost:8080 --username {user} --password {password}
Exporting job: CaseStudy-BLAST-generate-dataset
Get http://localhost:58080/job/CaseStudy-BLAST-generate-dataset//config.xml: dial tcp [::1]:58080: getsockopt: connection refused
Does this have the ability to target one job or a set of jobs? A --job or --jobs (with nargs * for a list) would be really nice. I want to have a Dev to Prod workflow, but not import/export all jobs.
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.