jenkins-plugins

Jenkins detects SVN changes but doesn't update workspace?

天大地大妈咪最大 提交于 2019-12-10 04:33:27
问题 I'm using Jenkins 1.461 and I have an issue when using SVN polling. My repository URL has the form svn+ssh:// * **** . I've configured Jenkins to poll for changes every 5 minutes. What happens is that every 5 minutes, changes are detected : Started on May 2, 2012 8:26:24 PM Received SCM poll call on for XXXXXXXXX on May 2, 2012 8:26:25 PM svn+ssh://X.X.X.X/svn/XXXX/XXXXXXXXX/XXXXXXXX/trunk is at revision 26,192 (changed from 26,181) Done. Took 2.6 sec Changes found But, the workspace is not

Docker Plugin for Jenkins Pipeline - No user exists for uid 1005

泪湿孤枕 提交于 2019-12-10 02:44:50
问题 I'm trying to execute an SSH command from inside a Docker container in a Jenkins pipeline. I'm using the CloudBees Docker Pipeline Plugin to spin up the container and execute commands, and the SSH Agent Plugin to manage my SSH keys. Here's a basic version of my Jenkinsfile: node { step([$class: 'WsCleanup']) docker.image('node').inside { stage('SSH') { sshagent (credentials: [ 'MY_KEY_UUID' ]) { sh "ssh -vvv -o StrictHostKeyChecking=no ubuntu@example.org uname -a" } } } } When the SSH command

How to pass a build number within the MultiJob plugin?

允我心安 提交于 2019-12-10 02:43:09
问题 The MultiJob plugin is great and I want to use it for my build process, but there is one issue I have to solve before: There are three jobs A, B and C. SVN triggers job A and B (parallel execution) and job C starts when A and B have finished. Job C requires the artifacts from job A and B as an input. -> Job A (with A.zip) Trigger -> Job C (use artifacts A.zip and B.zip) -> Job B (with B.zip) To design the workflow with the MultiJob plugin is easy, but I have no clue how to get the

How to download build output files from jenkins UI console itself

只愿长相守 提交于 2019-12-10 01:52:20
问题 I am new Jenkins , using jenkins 1.651.3 War deployed on Tomcat6 Is there any way to download Jenkins job’s output file ( my job produced a jar file ) from jenkins UI Console itself ? So, could anyone suggest me is there any way or plugin available to make the each Jenkins build output files ( like Jar/War) as downloadable from the Jenkins server machine [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ NumberGenerator --- [INFO] Building jar: /opt/cloudhost/jenkinsHome/jobs/TestGiby

Gracefully stopping a build step (plugin) on build abort

倖福魔咒の 提交于 2019-12-10 01:16:29
问题 I have a plugin in Jenkins that operates a remote server via rest. How can I send one last request to the server on build abort? Thus, gracefully finishing the work of the plugin? The only reference to the 'Abort sequence' that I found is this. Which makes me think that the procedure is very rough, and that I can't catch the signal before it terminates the child (my plugin). 回答1: I have a similar need, which I solved with the PostBuildScript Plugin. I choose to run a build step, but you can

Gets error “Cannot get CSRF” when trying to install jenkins-plugin using ANSIBLE

冷暖自知 提交于 2019-12-09 18:58:39
问题 I am using ANSIBLE to install jenkins on CENTOS. The installation works fine but when it comes to the task of installing plugin, i get the following error. fatal: [jenkins]: FAILED! => {"changed": false, "details": "Request failed: <urlopen error [Errno 111] Connection refused>", "failed": true, "msg": "Cannot get CSRF"} The code is as follows. - name: Install jenkins rpm_key: state: present key: https://pkg.jenkins.io/redhat-stable/jenkins.io.key - name: Add Repository for jenkins yum

Jenkins GitHub Plugin Inverse Branches

血红的双手。 提交于 2019-12-09 18:11:37
问题 I have a question in on the plugins page, but this seems to be a much more active place for Jenkins support. When a change is pushed to any branch the job will run, and merge into the develop branch, but approx 20 seconds later the job will notice the merge into develop and trigger the job again. This should not happen because develop is in the branches to build (with inverse choosing stragety). This also happens when a change it pushed to master or release, which also should be excluded. If

Jenkins Plugin: create a new job programmatically

徘徊边缘 提交于 2019-12-09 16:13:51
问题 How to create a new Jenkins job within a plugin? I have a Jenkins plugin that listens to a message queue and, when a message arrives, fires a new event to create a new job (or start a run). I'm looking for something like: Job myJob = new Job(...); I know I can use REST API or CLI but since I'm in the plugin I'd use java internal solution. 回答1: You can create a new hudson/jenkins job by simply doing: FreeStyleProject proj = Hudson.getInstance().createProject(FreeStyleProject.class, NAMEOFJOB);

Performance graphs on Jenkins causing “Could not initialize class org.jfree.chart.JFreeChart” exceptions

送分小仙女□ 提交于 2019-12-09 15:43:33
问题 When Jenkins tries to generate the Performance Trends graphs there launches several exceptions always with root cause: " java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart " This is what I did: desployed Jenkins , tried with v1.532.2 ( stable ) and also with v1.539-SNAPSHOT didn't configured security just set paths to my JDK (oracle's jdk1.7.0_51), MAVEN (3.1.1) and GIT (1.8.1.2) enabled these plugins: Checkstyle v3.39 Jenkins Cobertura v1.9.3 FindBugs v4.51

How to list all unused jenkins plugins?

核能气质少年 提交于 2019-12-09 14:44:01
问题 I am looking for method to check which jenkins plugins are not used. So far I found that I can look for tags in config.xml file with attribute plugin then compare them with the ones listed in plugins directory. But that does not give me complete list. Still some are not there like role-strategy . I use python code like below #!/usr/bin/env python # -*- coding: utf-8 -*- import sys import glob from lxml import etree as ET from collections import defaultdict def find(name, path): return glob