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
34
votes
5 answers

Job DSL to create "Pipeline" type job

I have installed Pipeline Plugin which used to be called as Workflow Plugin earlier. https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin I want to know how can i use Job Dsl to create and configure a job which is of type Pipeline
33
votes
3 answers

How to upload a generic file into a Jenkins job?

I am trying to find a way to prompt the user to select and upload a generic file from a local machine to a Jenkins job prior to build. The input file that user is going to upload is not necessarily a text or a property file. I am specifically trying…
DAZA
  • 331
  • 1
  • 3
  • 3
33
votes
7 answers

How to change the security type from SSL to TLS in Jenkins?

I am trying to setup the smtp email notification. I could see that the gmail part works fine. I want to configure it for my office 365. Smtp server = smtp.office365.com We don't have SSL configured. Instead we use TLS. How can I set the TLS in the…
dexterous
  • 6,422
  • 12
  • 51
  • 99
32
votes
7 answers

How can I update jenkins plugins from the terminal?

I am trying to create a bash script for setting up Jenkins. Is there any way to update a plugin list from the Jenkins terminal? At first setup there is no plugin available on the list i.e.: java -jar jenkins-cli.jar -s `http://localhost:8080`…
anilyeni
  • 744
  • 1
  • 8
  • 13
32
votes
1 answer

How do I know which stage of jenkins pipeline has failed

In my Jenkins pipelines I generally use post declarative function to send me an email incase the pipeline has failed. A simple syntax of the post function is as under: post { failure { mail to: 'team@example.com', subject:…
Yash
  • 2,944
  • 7
  • 25
  • 43
32
votes
3 answers

How can I export an existing job into an Jenkinsfile?

I would like to use Pipeline to keep track of my Jenkin Jobs within my SCM. (Source control manager). Is there a way I can take my existing jobs and export them to a valid Jenkinsfile which can be read by Pipeline? The main plugins I'm using which I…
Bob
  • 1,605
  • 2
  • 18
  • 33
32
votes
5 answers

How to restart Jenkins using Ansible and wait for it to come back?

I'm trying to restart the Jenkins service using Ansible: - name: Restart Jenkins to make the plugin data available service: name=jenkins state=restarted - name: Wait for Jenkins to restart wait_for: host=localhost port=8080 …
ChocoDeveloper
  • 14,160
  • 26
  • 79
  • 117
31
votes
8 answers

How to change the time zone in Jenkins?

I wish to change the time zone of the Jenkins. I have changed the time zone of the Jenkins installed server, but the Jenkins UI shows the different time. I need to set the PST time for Jenkins UI. How can I do it?
soundararajan.c
  • 2,538
  • 6
  • 29
  • 51
30
votes
5 answers

add build parameter in jenkins build schedule

I have a jenkins job. i want to build my job in a specific time with a build parameter. I want to do this by using the Build periodically option. I have input like this: */1 * * * * Parameter1 If I do this, jenkins show an error. Is this possible…
Eric Ipsum
  • 723
  • 3
  • 10
  • 24
29
votes
7 answers

How to install jenkins plugins from command line?

Is there any option to install jenkins plugins from command line ? I found a command for this after a bit google search : java -jar /var/lib/jenkins/jenkins.war -s http://127.0.0.1:8080/ install-plugin ${Plugin_Name} But it's not working.
Arun Ramachandran
  • 1,270
  • 5
  • 23
  • 36
29
votes
2 answers

Git Publisher "target remote name" validation problems, single repo

I am trying to use the Git Publisher plugin to tag a successful build with the $BUILD_TAG, but I cannot figure out a value for the Target remote name that it will accept. If I use the Repository URL in the GIT configuration I'm told, No remote…
TreeRex
  • 507
  • 1
  • 5
  • 13
29
votes
6 answers

Check Jenkins job status after triggering a build remotely

I have a script to trigger a job on Jenkins remotely using a token. Here is my script: JENKINS_URL='http://jenkins.myserver.com/jenkins' JOB_NAME='job/utilities/job/my_job' JOB_TOKEN='my_token' curl…
Nam Nguyen
  • 5,668
  • 14
  • 56
  • 70
29
votes
6 answers

Build only the Git branch that has been pushed to

I have a Jenkins job to build the master branch of my GitHub repo. It triggers nicely when I push a commit to master, and I'm very happy about it. I would also like to have a single Jenkins job that would build any other branch in this repository.…
Lóránt Pintér
  • 10,152
  • 14
  • 47
  • 53
28
votes
16 answers

ERROR: Error cloning remote repo 'origin'

Tried with the configure option, not able to find the tools configuration option and the git executable section. Seems like it occurs after a successful build only. Please help. Here's the output I receive after building the project on the console…
Learner
  • 512
  • 2
  • 7
  • 23
28
votes
3 answers

Dynamic or Conditional display of Jenkins job's parameters (rather than their value population)

Let's say I have two(or more) types of projects: app(Application) and svc (Service) and I have created a Jenkins job (common job) which have bunch of parameters. This common job might call another downstream/individual project type jobs (Trigger…