jenkins-plugins

How to create folders dynamically and upload artifacts in Jfrog artifactory using filespecs in Jenkins?

淺唱寂寞╮ 提交于 2019-12-13 15:29:36
问题 I have a build job in jenkins which builds the project from github for any branch. package will be created in build job workspace with the version as xxxx-yyyyy-2.15.0-SNAPSHOT.zip . My next artifactory push job has filespec written as below: { "files": [ { "pattern": "/var/lib/jenkins/workspace/Jobname/target/*/xxxx-yyyyy*.zip", "target": "libs-snapshot-local/xxxx-yyyyy/", "recursive": "false" } ] } Above filespec recognize the pattern and upload the zip in libs-snapshot-local/xxxx-yyyyy/ .

How to use the Groovy Expression from the Lockable Resources Plugin in Jenkins Freestyle projects

a 夏天 提交于 2019-12-13 15:22:16
问题 This question was asked in relation to an old version of Lockable Resources Plugin. The error in the old versions have been fixed since version 2.1. The answers for how to properly use the Groovy Expression in the freestyle jobs are however not described. I will add an answer to explain this. The original question follows, for those with an interest: I'm was initially attempting to get the Lockable Resources Plugin to lock on a specific resource while also evaluation the value of a system

No internet connectivity inside docker container running inside kubernetes with weave as networking

北慕城南 提交于 2019-12-13 14:35:47
问题 I have a kubernetes cluster that is running on AWS EC2 instances and weave as networking(cni). I have disabled the docker networking(ipmask and iptables) as it is managed by weave(to avoid network conflicts). I have deployed my Jenkins on this cluster as K8s pod and this jenkins uses jenkins kubernetes plugin to spawn dynamic slaves based on pod and container template which I have defined. These slaves container have docker client in it which connects to the host docker engine via docker.sock

List all jobs, which were running on a specific slave node

♀尐吖头ヾ 提交于 2019-12-13 12:28:37
问题 On our Jenkins master a Multi-configuration project is used to spread a highly parallel task on many slaves which actually do the work. Now I would like to list all jobs, which were running on a specific slave node. Is there a way to achieve this? I see only all matrix sub jobs for one matrix parent job in a big table. Or I can list the history of a single sub job. But if I want to get the connection to the node, where the job was running on, I always have to check the logs. 回答1: You can use

What should remotes/origin/HEAD set to?

柔情痞子 提交于 2019-12-13 10:16:13
问题 If the developers are working on develop branch, for a new project 1) Clone git clone <git_url> should be able to automatically clone develop branch locally without using -b option, so that $ git branch -a # after clone should give * develop remotes/origin/HEAD -> origin/develop remotes/origin/develop 2) Push When developer pushes local branch( develop ) changes to remote repository( origin/develop ) using command git push origin develop , my understanding is, changes are pushed to origin

Upload to HockeyApp from Jenkins

喜夏-厌秋 提交于 2019-12-13 05:47:31
问题 I have hosted and running builds in jenkins using AWS ubuntu machine. I want to upload the build once the build is generated in the post build process. I added HockeyApp plugin in the jenkins and created an API token with full access after signing up in HockeyApp. I entered the api token, mentioned Upload app and the file path. I however get the below error and I am not sure where am I going wrong Got unexpected response code from HockeyApp: 400 {"errors":{"credentials":["api token invalid"]}

Why can't this Powershell command be executed within Jenkins?

删除回忆录丶 提交于 2019-12-13 05:44:37
问题 I have a simple powershell command to open a web application, and then input the quick-keys required to close it: #Open Application in Browser Add-Type –AssemblyName System.Windows.Forms $ie = New-Object -com "InternetExplorer.Application" $ie.Navigate("http://UrlPath") $ie.visible = $true #Quick key to exit application sleep 15 [System.Windows.Forms.SendKeys]::SendWait("%{X}") This code executes with no issue when I use powershell ISE outside Jenkins. But When I try to execute the code using

How to pass output from an upstream project to downstream projects in Jenkins

前提是你 提交于 2019-12-13 05:39:46
问题 I want to use a project's results to generate parameters that can be passed down to multiple child projects using s something like the Parameterized Trigger Plugin. Specifically, I want to make a parent project as a sort of resource manager for my testing servers. Once the project is build, there are a number of complex test suites to run and only so many test servers. Rather than hard-code which test servers I want to run each test, I want the resource manager project to: Determine which

Jenking plugin installation fails

点点圈 提交于 2019-12-13 05:28:19
问题 I have installed the Jenkins app in mac server. when I try to install the plugin I'm getting below failure message. java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1317) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent

Azure provisioning with Jenkins

家住魔仙堡 提交于 2019-12-13 04:24:43
问题 As part of QA pipeline(in Jenkins), goal is to automate provisioning and configuration of a VM to run the QA tests. Jenkins pipeline can trigger Terraform code to automate provisioning of VM and ansible code for configuration of a VM, but, issues like rollback , error handling is not easy unless we use some vendor specific template like AzureResourceManager template. So, with Jenkins pipeline,What should be the best approach to provision and configure a VM in Azure cloud? we write pipeline