jenkins-plugins

Parameter List in Jenkins to display list of build numbers from another build

让人想犯罪 __ 提交于 2020-08-24 06:57:27
问题 I have two Jenkins builds, one for compiling and one for deploying. The developer wants to be able to choose a build from the compiler build when running the deploy build, not always run the most recent build. What I am after is a method of populating a choice parameter for the deploy build with a list of successful\unstable builds from the compile build. I will then use the the option listed in the parameter to deploy that artifact. 回答1: One option is to use the Promoted Builds plugin to

Jenkins REST API to get job and job console log

和自甴很熟 提交于 2020-08-22 06:19:06
问题 How to get the details of the job along with it console output using Jenkins REST API example of builds console output: I am using following commands to get the path of console log echo $JENKINS_HOME/jobs/$JOB_NAME/builds/${BUILD_NUMBER}/log echo $BUILD_URL/consoleText It would provide the path to console log http://localhost:8080/job/Echo/25//consoleText but if i try to get the data from it using c#.net it would through me a exception I am using following code to get the data public string

Jenkins REST API to get job and job console log

允我心安 提交于 2020-08-22 06:19:05
问题 How to get the details of the job along with it console output using Jenkins REST API example of builds console output: I am using following commands to get the path of console log echo $JENKINS_HOME/jobs/$JOB_NAME/builds/${BUILD_NUMBER}/log echo $BUILD_URL/consoleText It would provide the path to console log http://localhost:8080/job/Echo/25//consoleText but if i try to get the data from it using c#.net it would through me a exception I am using following code to get the data public string

Jenkins: How to make single job build and deploy on two servers

我是研究僧i 提交于 2020-08-21 19:42:28
问题 I have code in a repository. Now I want to create a job which will build code from the repository and deploy it on two servers. Right now I create two jobs with exactly the same configuration. The only change is the server on which it needs to deploy. Is it possible to do this with single job? 回答1: Can I suggest to use this maven plugin. You can configure batch tasks (either maven goals, or scripts) that you can attach to your normal maven jobs. https://wiki.jenkins-ci.org/display/JENKINS

How do I filter out “Added a missed class for missing class telemetry” warnings when running the jenkins test harness?

こ雲淡風輕ζ 提交于 2020-08-10 22:30:46
问题 Im using the jenkins test harness (starting with this example usage: https://github.com/testcookbook/jenkins_harness) and this warning is killing me Was this fixed? I tried following the issues but its left me more confused. I just want to NOT see it in my output: https://issues.jenkins-ci.org/browse/JENKINS-60725?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel, https://issues.jenkins-ci.org/browse/JENKINS-60725, https://issues.jenkins-ci.org/browse/JENKINS-60725

How can I delete files in directory using jenkins

你说的曾经没有我的故事 提交于 2020-08-10 05:29:06
问题 In my system, I am downloading new build everyday in 1 folder and then use it for further causes but after running jenkins job I want to delete files in the folder (not workspace) which will delete specific folders from same directory. This will help me downloading new build every time based on different jenkins job running on same machine. EG: I am downloading x.x build and then running jenkins job on machine and then if I want to run other job which requires x.y build, it will just see if

How can I override a jenkinsfile's default parameters?

烂漫一生 提交于 2020-08-08 19:24:49
问题 Sometimes, we want to create multiple jobs that use the same Jenkinsfile instead of a single one. This could happen for example because we want to maintain logs divided based on parameters, instead of having a single job on which look for the right log. However, in this case, we can't use the parameter definition in the Jenkinsfile, because whatever default value we would define on the job instance would be overwritten by the following execution with whatever is defined in the Jenkinsfile

How can I override a jenkinsfile's default parameters?

╄→гoц情女王★ 提交于 2020-08-08 19:24:40
问题 Sometimes, we want to create multiple jobs that use the same Jenkinsfile instead of a single one. This could happen for example because we want to maintain logs divided based on parameters, instead of having a single job on which look for the right log. However, in this case, we can't use the parameter definition in the Jenkinsfile, because whatever default value we would define on the job instance would be overwritten by the following execution with whatever is defined in the Jenkinsfile

How can I override a jenkinsfile's default parameters?

雨燕双飞 提交于 2020-08-08 19:24:38
问题 Sometimes, we want to create multiple jobs that use the same Jenkinsfile instead of a single one. This could happen for example because we want to maintain logs divided based on parameters, instead of having a single job on which look for the right log. However, in this case, we can't use the parameter definition in the Jenkinsfile, because whatever default value we would define on the job instance would be overwritten by the following execution with whatever is defined in the Jenkinsfile

Unable to build nuget packages during Jenkins build

做~自己de王妃 提交于 2020-07-22 05:02:07
问题 I am trying to build a .Net WEB API (https://github.com/NaveeenSemwal/jenkinsapi.git) using Jenkins freestyle project but i am getting error of nuget packages while building job in Jenkins. I have used VS 2019 community edition to create .net web api. I have configured MSBuild in Jenkins as below : Here i have configured git repository: And this is how i am using MSBuild in Jenkins's Job : Please find the error which i am getting while during build as below : I have also seen in the workspace