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
71
votes
4 answers

Job DSL Plugin Vs Pipeline Plugin

What is the major difference between Job DSL Plugin and Pipeline Plugin both provide way to programmatic job creation which is the best to use as moving ahead and why? if both have similar functionality, do they have different use cases? Since…
Mr.Pramod Anarase
  • 1,454
  • 2
  • 15
  • 19
58
votes
4 answers

How do I set a default choice in jenkins pipeline?

quite frustrating I can't find an example of this. How do I set the default choice? parameters { choice( defaultValue: 'bbb', name: 'param1', choices: 'aaa\nbbb\nccc', description: 'lkdsjflksjlsjdf' …
red888
  • 27,709
  • 55
  • 204
  • 392
58
votes
18 answers

How to get the BUILD_USER in Jenkins when job triggered by timer?

I wanted to show the user who triggered a Jenkins job in the post job email. This is possible by using the plugin Build User Vars Plugin and the env variable BUILD_USER. But this variable do not get initialized when the job is triggered by a…
Musaffir Lp
  • 935
  • 1
  • 9
  • 16
57
votes
22 answers

'User is missing the Overall/Read permission' error with Jenkins GitHub OAuth Plugin

I'm using the github oauth plugin for our logins but for all of our users in the Organisation I get an error: Access Denied is missing the Overall/Read permission I have tried everything I can possibly think of to try to make this work and…
real_ate
  • 10,861
  • 3
  • 27
  • 48
56
votes
1 answer

What is the difference between deleteDir, cleanWs, and 'WsCleanup' in Jenkins pipeline?

These have all been mentioned (for example in this SO question) for cleaning up the workspace in Jenkinsfile. However, it seems that some are obsolete or have slightly different function and I would like to understand which to use. Of these, …
Joshua Fox
  • 18,704
  • 23
  • 87
  • 147
56
votes
4 answers

how can I know whether the plugin is used by any jobs in jenkins

Jenkins had 600+ plugins, in the real system, we are used to install lots of plugins. And sometimes, we want to remove some plugins to make system more clean or replace with another mature plugin (different name). This needs to make sure no one/no…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
53
votes
5 answers

How to throw exception in jenkins pipeline?

I have handled the Jenkins pipeline steps with try catch blocks. I want to throw an exception manually for some cases. but it shows the below error. org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use…
Yahwe Raj
  • 1,947
  • 5
  • 25
  • 37
53
votes
3 answers

Passing variable from shell script to jenkins

I trigger a shell script from Jenkins, This scripts get date and export it as a environment(Linux) variable $DATE. I need to use this $DATE inside same Jenkins job. I made job as parameter build. Created a string parameter as DATE value as…
user3232823
  • 1,867
  • 3
  • 18
  • 27
52
votes
7 answers

difference between freestyle project and pipeline in jenkins

I'm a little confused about Freestyle project and pipeline in jenkins when trying to create new items. When should I create item with Freestyle project? And in which case should I use pipeline? Do I need to store config.xml into code repository for…
Jared
  • 822
  • 1
  • 10
  • 18
51
votes
6 answers

Jacoco coverage in Jenkins Pipeline

Can anyone suggest if there is a way to execute Jacoco in a Jenkins Pipeline? I have downloaded the plugin but I do not get the option for Jacoco in the 'Pipeline Syntax', which is the Pipeline script help . Referred this URL:…
user5917011
  • 1,137
  • 5
  • 14
  • 22
50
votes
6 answers

Xcode 7: changing product bundle identifier

I'm setting up Jenkins to automate the build process. In particular, for my needs, I'd like to be able to set different bundle identifiers. I'm using the Xcode Jenkins plugin to set the bundle identifier: The problem is that this will change the…
Luca Torella
  • 7,974
  • 4
  • 38
  • 48
49
votes
3 answers

What is difference between .hpi and .jpi of Jenkins plugins?

I have installed Jenkins plugins in two ways i.e. manually keeping the .hpi file in Jenkins home directory, and installing from Jenkins front-end (Manage Jenkins > Manage Plugins). What I notice here is when I install the plugin manually…
Venkat M
  • 593
  • 1
  • 4
  • 6
48
votes
10 answers

How to get build time stamp from Jenkins build variables?

How can I get build time stamp of the latest build from Jenkins? I want to insert this value in the Email subject in post build actions.
rkkreddy
  • 725
  • 1
  • 9
  • 16
47
votes
5 answers

How to disable a Jenkins Multibranch Pipeline project

I've been creating a few Multibranch Pipeline projects in Jenkins and now I've "upgraded" to use a GitHub Organization project. How do I disable the old Multibranch Pipeline projects? I don't see any Disable button anywhere. Here is a screenshot of…
grayaii
  • 2,241
  • 7
  • 31
  • 47
47
votes
9 answers

Jenkins - failed: No test report files were found. Configuration error?

I'm beginner for "Jenkins" and following this tutorial. At the Sixth step I got below error. xcodebuild: error: Scheme JenkinsTest is not currently configured for the test action. Build step 'Xcode' marked build as failure Recording test results …
iPatel
  • 46,010
  • 16
  • 115
  • 137