Questions tagged [jenkins-plugins]

Jenkins is an open source continuous integration software. It is extensible by Plugins which are developed by the core team, users, and developers. There are currently 1300+ plugins available for Jenkins.

The complete list of plugins is available here.

What questions should have this tag?

Any questions about Jenkins plugins, plugin development, and plugin use may be tagged with jenkins-plugins.

To learn more about Jenkins plugins:

Visit "Extend Jenkins" and "Customize Jenkins"

7181 questions
27
votes
4 answers

Use PyLint on Jenkins with Warnings Plugin and Pipeline

I want to use PyLint on Jenkins with Warnings Plugin and Pipeline, since Violations plugin is deprecated. There are no docs or complete examples. There is some information: timeout(time: 5, unit: 'MINUTES') { sh 'npm run lint:ci' step([$class:…
Paweł Prażak
  • 3,091
  • 1
  • 27
  • 42
27
votes
7 answers

Jenkins powershell plugin always builds successfully

I'm using Jenkins PowerShell plugin to build a project. However, I found that Jenkins always considers my build successful no matter what I type inside Windows PowerShell command. Here's an example: As you can see, asdf isn't a legal command.…
Brian
  • 12,145
  • 20
  • 90
  • 153
27
votes
2 answers

How to process a github webhook payload in Jenkins?

I'm currently triggering my Jenkins builds through a GitHub webhook. How would I parse the JSON payload? If I try to parameterize my build and use the $payload variable, the GitHub webhook fails with the following error:
Grant
  • 395
  • 1
  • 3
  • 11
27
votes
3 answers

Jenkins (Windows) very slow Git fetch

We are experiencing slow git fetch commands on a Jenkins installation on Windows Server 2012. I have tried all the solutions mentioned in these threads: Hudson git commands are *incredibly* slow (Using plink.exe from PuTTY and setting GIT_SSH to…
Thomas T
  • 697
  • 1
  • 7
  • 19
27
votes
7 answers

Jenkins Dynamic parameters based on previously selected parameter value

Here I am basically looking for a dependency parameter. Let's say I have two dropdowns in the build parameter section. Based on the value selected from the first dropdown the possible default I want the values of the second dropdown to vary. Is…
Kishore Tamire
  • 2,054
  • 5
  • 23
  • 25
26
votes
3 answers

Jenkins Workflow Checkout Accessing BRANCH_NAME and GIT_COMMIT

I cannot seem to extract $GIT_COMMIT and $BRANCH_NAME from a Jenkins Workflow Checkout step. I would like to be able to send this information through to my Gradle scripts in order to pass it onto external sources such as Static analysis…
Oldek
  • 2,679
  • 5
  • 23
  • 25
26
votes
2 answers

Accessing credentials in Jenkins with the Credentials Parameter plugin

My Jenkins box needs to access Stash and Jira through their REST apis. For that I need to store their credentials. The way I am doing is via the Credentials Parameter, which asks me for a Name, Credential type, Required, Default Value, and a…
Alexandre Santos
  • 8,170
  • 10
  • 42
  • 64
26
votes
8 answers

How to export credentials from one jenkins instance to another?

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…
sakurashinken
  • 3,940
  • 8
  • 34
  • 67
26
votes
3 answers

Jenkins - Is there a way to remove all offline nodes (slaves) / batch remove nodes / delete all nodes?

While using the Jenkins Docker Plugin, probably because of an error, swarms cannot be launched. I didn't pay attention and at the moment I have thousands of offline nodes, that were failed to launch. BOTTOM LINE - Is there a way to batch remove…
AlonL
  • 6,100
  • 3
  • 33
  • 32
25
votes
5 answers

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

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…
Nathan Thompson
  • 2,354
  • 1
  • 23
  • 28
25
votes
4 answers

Running a Post Build script when a Jenkins job is aborted

Is there a possible way / plugin that can run a post build script when a Jenkins job is aborted. I do see that the post build plugin provides an action to execute a set of scripts, but these can be run only on 2 options either a successful job or a…
Jose
  • 1,333
  • 5
  • 20
  • 38
25
votes
4 answers

Get URL of Job in mail body in Jenkins

I have Job in Jenkins that sends an email after the build with a HTML report in its body using email-ext plugin by setting Default content to this : ${FILE,path="absolute_path/index.html"} I want to add to this (my body mail ) the URL of the build…
HobbitOfShire
  • 2,144
  • 5
  • 24
  • 41
24
votes
3 answers

How can I use `def` in Jenkins Pipeline?

I am learning Jenkins Pipeline, and I tried to follow this Pipeline code. But my Jenkins always complains that def is not legal. I am wondering did I miss any plugins? I already installed groovy, job-dsl, but it doesn't work.
Ron
  • 6,037
  • 4
  • 33
  • 52
24
votes
4 answers

Executing powershell command directly in jenkins pipeline

Is it possible to call a PowerShell command directly in the pipelines groovy script? While using custom jobs in Jenkins I am able to call the command with the PowerShell Plugin. But there is no snippet to use this in the groovy script. I also tried…
Rod Kimble
  • 1,302
  • 3
  • 18
  • 44
24
votes
4 answers

How to download build output files from jenkins UI console itself

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…
gibyalex
  • 629
  • 3
  • 9
  • 19