jenkins-job-builder

Jenkins - Git Submodule Credentials Different from Parent Repo

╄→гoц情女王★ 提交于 2019-12-21 03:42:27
问题 Background Jenkins is being used to build an artifact from a Git repo that has a Git submodule. The submodule(s) are not in the same repo or even at the same endpoint as the parent project. The problem is that parent repo checks out fine because the credential, ssh key A, is associated with the main/parent repo but, not surprisingly, fails on the submodule because the credential, ssh key B, is not associated with the repo from Jenkins' point of view. It's surprising that Jenkins does not have

Jenkins job triggered twice

不想你离开。 提交于 2019-12-13 03:57:06
问题 1) I am using Jenkins API to trigger a job, so when my monitoring tool sensu sends request Jenkins API to trigger jenkins JOb the build starts. 2) I have tried even manually by hitting buildnow instead of using API calls to make sure that it is not API call problem. What does my build contain? It runs on Master and runs a ansible play-book with help of ansible plugin Problem: Once the build is complete it is successful it automatically triggers another build with no reason again and runs the

How to convert jenkins job configuration config.xml to YAML format in python to be used jenkins-job-builder?

淺唱寂寞╮ 提交于 2019-12-06 04:12:56
问题 jenkins-job-builder is a nice tool to help me to maintain jobs in YAML files. see example in configuration chapter. Now I had lots of old jenkins jobs, it will be nice to have a python script xml2yaml to convert the existing jenkins job config.xml to YAML file format. Do you any suggestions to had a quick solution in python ? I don't need it to be used in jenkins-job-builder directly, just can be converted it into YAML for reference. For the convert, some part can be ignored like namespace.

How to convert jenkins job configuration config.xml to YAML format in python to be used jenkins-job-builder?

雨燕双飞 提交于 2019-12-04 09:57:59
jenkins-job-builder is a nice tool to help me to maintain jobs in YAML files. see example in configuration chapter. Now I had lots of old jenkins jobs, it will be nice to have a python script xml2yaml to convert the existing jenkins job config.xml to YAML file format. Do you any suggestions to had a quick solution in python ? I don't need it to be used in jenkins-job-builder directly, just can be converted it into YAML for reference. For the convert, some part can be ignored like namespace. config.xml segment looks like: <project> <logRotator class="hudson.tasks.LogRotator"> <daysToKeep>-1<

Jenkins - Git Submodule Credentials Different from Parent Repo

陌路散爱 提交于 2019-12-03 11:05:39
Background Jenkins is being used to build an artifact from a Git repo that has a Git submodule. The submodule(s) are not in the same repo or even at the same endpoint as the parent project. The problem is that parent repo checks out fine because the credential, ssh key A, is associated with the main/parent repo but, not surprisingly, fails on the submodule because the credential, ssh key B, is not associated with the repo from Jenkins' point of view. It's surprising that Jenkins does not have better out-of-the-box support for Git submodules; time to contribute. Questions Is there a way to