jenkins-plugins

Jenkins kubernetes plugin not working

你离开我真会死。 提交于 2019-12-29 06:23:17
问题 I am trying to setup Jenkins Dynamic slaves creation using jenkins-kubernetes plugin. My jenkins is running outside K8s Cluster. Link: https://github.com/jenkinsci/kubernetes-plugin My jenkins version is 2.60.2 and Kubernetes plugin version is 1.1.2 I followed the steps mention on the readme and successfully setup the connection. My setting looks like: And connection is successful. Then I created a job with pod template : Here starts the problem: 1. When I run this job initially it runs and

How to export credentials from one jenkins instance to another?

我的梦境 提交于 2019-12-29 03:31:05
问题 I am using the credentials plugin in Jenkins to manage credentials for git and database access for my team's builds. I would like to copy the credentials from one jenkins instance to another, independent jenkins instance. How would I go about doing this? 回答1: UPDATE: TL;DR Follow the link provided below in a comment by Filip Stachowiak it is the easiest way to do it. In case it doesn't work for you go on reading. Copying the $HUDSON_HOME/credentials.xml is not the solution because Jenkins

How to export credentials from one jenkins instance to another?

荒凉一梦 提交于 2019-12-29 03:31:03
问题 I am using the credentials plugin in Jenkins to manage credentials for git and database access for my team's builds. I would like to copy the credentials from one jenkins instance to another, independent jenkins instance. How would I go about doing this? 回答1: UPDATE: TL;DR Follow the link provided below in a comment by Filip Stachowiak it is the easiest way to do it. In case it doesn't work for you go on reading. Copying the $HUDSON_HOME/credentials.xml is not the solution because Jenkins

How to make a Jenkins/Hudson job surveil some others jobs and decide whether to build or not?

为君一笑 提交于 2019-12-28 03:38:29
问题 PROBLEM Given that all the jobs have string LEVEL_X in it's job name, where X is a number > 1. I want every job with X = n to surveil every job with X = n-1 , and start building if each of them is finished with success. And I want the job with X = n to surveil the other jobs with an interval of 1 minute. First of all, I am interested in knowing what the best way is to do that, second I want the solution if one can be implemented by a small script, maybe a groovy script which can be run in

Is there any way to cleanup Jenkins workspace?

你离开我真会死。 提交于 2019-12-27 23:36:14
问题 How can I cleanup the workspace in Jenkins? I am using AccuRev as version control tool. I created freestyle projects in Jenkins. 回答1: There is a way to cleanup workspace in Jenkins. You can clean up the workspace before build or after build. First, install Workspace Cleanup Plugin. To clean up the workspace before build: Under Build Environment, check the box that says Delete workspace before build starts. To clean up the workspace after the build: Under the heading Post-build Actions select

Count the number of lines of code changed between time periods [closed]

依然范特西╮ 提交于 2019-12-26 11:46:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . For a single project, I would like to know the number of lines of code changed within a rolling time period. We are using Jenkins and Java, and I am looking for for some kind of Jenkins plugin or report that would give me a report on demand. The goal will be to determine if there is a relationship between bugs

JENKINS .HPI dependencies issue

梦想与她 提交于 2019-12-25 16:29:13
问题 I am creating the .hpi jenkins plugin. The issue i am having is with the external jars, it is not getting picked up by my java code that is running. I am using maven so they are in the .hpi package inside the web-inf/lib in the .hpi package I have a menifest.mf file inside /META-INF directory in the .hpi pcakage with the following Class-Path: ./lib/car.jar ./lib/plane.jar PluginFirstClassLoader: true this is what i have in the pom.xml file ''' ''' <manifestFile>src/main/resources/custom

Running parallel jobs in Jenkins

限于喜欢 提交于 2019-12-25 15:51:14
问题 I'm using Jenkins for my builds, and I wrote some test scripts that I need to run after the compilation of the build. I want to save some time, so I have to run the test scripts parallel. How can I do that? EDIT: ok, I understand know that I need a separate Job for each test (for 4 tests I need 4 jobs, right?) So, I did that, and via the parent job I ran this jobs. (using "build other projects" plugin). But I didn't managed to aggregate the results (using aggregate downstream test results).

Jenkins MSbuild multiple files

泄露秘密 提交于 2019-12-25 14:39:10
问题 I want to use Jenkins's MSbuild to build multiple project. Is it possible? Maybe use semicolons to separate projects, like below: 回答1: That doesn't work that way. But you could add another MSBuild-Step for each project. If you don't want to repeat the 'Command Line Arguments' every time one solution could be to check the 'Pass build variables as properties' . Then in 'Buildenvironment' you choose 'Inject environment variables to the build process' and add something like BUILD_ARGS="/t:rebuild

How to pass an array to a jenkins parameterized job via remote access api?

你说的曾经没有我的故事 提交于 2019-12-25 08:41:55
问题 I am trying to call a Jenkins parameterized job using curl command. I am following Remote API Jenkins. I have Active choice parameter plugin. One of the parameters of the job is an Active choice reactive parameter. Here is the screenshot of the job: I am using the following curl command to trigger it with parameter: curl -X POST http://localhost:8080/job/active-choice-test/buildWithParameters -u abhishek:token --data-urlencode json='{"parameter": [{"name":"state", "value":"Maharashtra"},{