Most viewed questions in Jenkins

0 votes
2 answers

Jenkins and Docker : Build a Docker image using an jenkins pipeline and push it into docker registry.

In the illustration below, i have created a ...READ MORE

Aug 26, 2019 in Jenkins by Sirajul
• 59,230 points
144,987 views
+2 votes
2 answers

what is the key difference between Declarative pipeline and scripted pipeliine

The key difference between Declarative pipeline and Scripted pipeline ...READ MORE

Aug 13, 2019 in Jenkins by Sirajul
• 59,230 points
121,960 views
+5 votes
3 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

You can run the following code, its ...READ MORE

Jul 5, 2018 in Jenkins by Sophie may
• 10,610 points
117,501 views
+3 votes
2 answers

Is there a way to restrict permissions to a user per individual job in jenkins?

Yes, you can configure user permissions per ...READ MORE

May 28, 2019 in Jenkins by Sirajul
• 59,230 points

edited May 28, 2019 by Sirajul 109,820 views
+3 votes
12 answers

Set environment variables in Jenkins

You can try something like this stages { ...READ MORE

Dec 10, 2018 in Jenkins by Celia
107,774 views
+5 votes
2 answers

How to assign a groovy variable to a shell variable?

I have tried the following in my ...READ MORE

Dec 4, 2019 in Jenkins by Raveendiran
• 980 points
87,704 views
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
76,160 views
0 votes
5 answers

How to resolve this error “Jenkins Host key verification failed”?

HI Mam, Please check the following solution:: 1. Switch ...READ MORE

May 3, 2019 in Jenkins by anonymous
60,201 views
0 votes
1 answer

How do I set up a windows_slave agent via JNLP, If I have a Jenkins master configured on linux?

JNLP(JAVA NETWORK LAUNCH PROTOCOL) is used to Connect to/launch ...READ MORE

Jun 3, 2019 in Jenkins by Sirajul
• 59,230 points
56,820 views
+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

Oct 25, 2018 in Jenkins by krishti
56,458 views
0 votes
2 answers

How do i move jenkins from one server to another?

1. Copy all the files in your JENKINS_HOME directory over ...READ MORE

Aug 2, 2019 in Jenkins by Sirajul
• 59,230 points
51,407 views
+2 votes
4 answers

How to run Jenkins jobs on multiple slaves with a single job configuration?

use multijob plugin READ MORE

Jan 3, 2019 in Jenkins by Ajit Jadhav
46,710 views
+1 vote
6 answers

Unable to login to Jenkins even if I enter valid credentials.

Disable security by editing these two classes ...READ MORE

Apr 26, 2019 in Jenkins by Vedant
46,519 views
+1 vote
1 answer

How to extract a substring of a string in a declarative pipeline code?

This would have been more easier using ...READ MORE

Aug 16, 2019 in Jenkins by Sirajul
• 59,230 points
46,007 views
+3 votes
7 answers

Is it possible to shift or move jobs between two jenkins servers?

Hi, You can copy Jobs in between your ...READ MORE

Dec 16, 2020 in Jenkins by MD
• 95,440 points
44,457 views
0 votes
5 answers

What is the default Jenkins password?

Change the shell to /bin/bash instead of bin/false ...READ MORE

Apr 23, 2019 in Jenkins by Vinod
44,369 views
+1 vote
1 answer

java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

Hi@akhtar, I think you did not install your ...READ MORE

Jul 7, 2020 in Jenkins by MD
• 95,440 points
43,241 views
+2 votes
6 answers

Jenkins unable to run jobs (pending - waiting for next executor)

Increase the number of executors. I had ...READ MORE

Apr 24, 2019 in Jenkins by Maya
39,895 views
0 votes
1 answer

How can I enable jenkins to execute the shell commands as sudo or root?

Hey,  Create a freestyle project on Jenkins Use the ...READ MORE

Oct 23, 2020 in Jenkins by Hana
35,353 views
+4 votes
7 answers

How to set the pipeline name and description for a Jenkinsfile?

You can rename pipeline jobs in jenkins ...READ MORE

Oct 11, 2018 in Jenkins by Hannah
• 18,570 points
35,163 views
0 votes
2 answers

How to start Jenkins on a different port rather than 8080?

This is simple, use the following command: java ...READ MORE

Jul 4, 2018 in Jenkins by Sophie may
• 10,610 points
35,162 views
0 votes
1 answer

How to set permissions for a user in Jenkins?

Hi@akhtar, You can give access to your user ...READ MORE

Dec 7, 2020 in Jenkins by MD
• 95,440 points
33,030 views
+2 votes
5 answers

stash/unstash to transfer data in Jenkins from a build container to the other node.

Since the container gets destroyed once the ...READ MORE

Dec 21, 2018 in Jenkins by anonymous
32,629 views
0 votes
1 answer

Changing Jenkins workspace

By default, your Jenkins workspace would be ...READ MORE

May 15, 2019 in Jenkins by Kapil
30,600 views
0 votes
1 answer

Print the line if it contains a specific string by using groovy.

You can try the code written below: ...READ MORE

Apr 27, 2018 in Jenkins by shubham
• 7,340 points
29,294 views
0 votes
1 answer

How to clone a job in Jenkins?

Hi@akhtar, You can clone a Job in Jenkins. ...READ MORE

Oct 24, 2020 in Jenkins by MD
• 95,440 points
29,015 views
0 votes
2 answers

How to change the default Jenkins port in Windows?

Hi@akhtar, Yes, you can change Jenkins port no. ...READ MORE

Jun 3, 2020 in Jenkins by MD
• 95,440 points
28,827 views
0 votes
2 answers

how to execute a shell script post build step in Jenkins?

You could use the Post Build Task Plugin ...READ MORE

Jul 31, 2019 in Jenkins by Sirajul
• 59,230 points
28,552 views
+1 vote
4 answers

Is there a way to change the Jenkins build number while building a job?

If you have access to the script ...READ MORE

May 7, 2019 in Jenkins by Atul
28,454 views
+5 votes
5 answers

Jenkins properties file

Follow these steps: 1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE

Aug 2, 2018 in Jenkins by lina
• 8,220 points
27,468 views
+1 vote
1 answer
0 votes
1 answer

Install GIT and Maven inside a Docker Container and access them to build a job with Maven from a GIT repository

Create a Dockerfile and add the commands ...READ MORE

Apr 16, 2019 in Jenkins by Nishu
26,941 views
+2 votes
1 answer

How to run a job in Jekins by a different user ?

To run a job by a specific ...READ MORE

Jun 17, 2019 in Jenkins by Neel
• 3,020 points
26,736 views
+5 votes
4 answers

How can I run a Jenkinsfile from a particular folder?

Consider the below points: The Freestyle project ...READ MORE

Mar 27, 2018 in Jenkins by anonymous
23,684 views
0 votes
1 answer

Error: ‘Jenkins pipeline: No such DSL method'

This is a simple mistake, just remove ...READ MORE

Aug 17, 2018 in Jenkins by Sophie may
• 10,610 points
22,916 views
0 votes
5 answers

Error: Docker not found when building docker image on Jenkins pipeline

Check if you have Docker installed and ...READ MORE

Apr 23, 2019 in Jenkins by Vimal
22,670 views
0 votes
1 answer

How to cleanup Jenkins workspace?

Hi@akhtar, There is a way to clean up ...READ MORE

Oct 24, 2020 in Jenkins by MD
• 95,440 points
22,409 views
0 votes
3 answers

How to get the Maven Version of a project in Jenkins?

Here is a snippet from our Jenkins ...READ MORE

Oct 4, 2019 in Jenkins by Petr Doležal
22,101 views
+1 vote
1 answer

Failed to connect to repository :Error performing git command: git ls-remote -h https://github.com/jenikis_hook.git HEAD

Hi@akhtar, There may be several reasons behind this ...READ MORE

May 4, 2020 in Jenkins by MD
• 95,440 points
21,997 views
+1 vote
1 answer

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

Hi@akhtar, I also faced the same issue and I ...READ MORE

May 12, 2020 in Jenkins by MD
• 95,440 points
20,610 views
+1 vote
3 answers

"No such file pom.xml" error in Jenkins

Can you please che ck the location ...READ MORE

May 16, 2019 in Jenkins by Samir
20,556 views
0 votes
2 answers

How to disable or reset security settings in Jenkins?

One other way would be to manually ...READ MORE

Aug 2, 2019 in Jenkins by Sirajul
• 59,230 points
20,220 views
0 votes
1 answer

Error saying "error: dpkg frontend is locked by another process"

Hey! First, find out the id of the ...READ MORE

Apr 15, 2019 in Jenkins by Vedant
20,189 views
0 votes
2 answers

What is the command to restart jenkins through command line in linux?

On Ubuntu or Debian, when installed through apt-get/dpkg: $ ...READ MORE

Aug 1, 2019 in Jenkins by Sirajul
• 59,230 points
20,105 views
0 votes
1 answer

How to increase no of executors in Jenkins?

Hi@akhtar, By default Jenkins has 2 executors. But ...READ MORE

May 13, 2020 in Jenkins by MD
• 95,440 points
18,666 views
+1 vote
1 answer
0 votes
1 answer

JNLP agent port is disabled and agents cannot connect this way. Go to security configuration screen and change it.

Hi@MD, By default JNLP agent port is disabled ...READ MORE

May 29, 2020 in Jenkins by akhtar
• 38,230 points
18,279 views
+1 vote
1 answer

how to install jenkins and how to run pom.xml through jenkins

The complete process to install Jenkins can be ...READ MORE

Feb 12, 2019 in Jenkins by Kalgi
• 52,360 points
18,216 views
0 votes
2 answers

Jenkins Pipeline: Build using parameters

First, as @sophie may mentioned it you should name ...READ MORE

Aug 8, 2019 in Jenkins by Sirajul
• 59,230 points
16,418 views
+2 votes
5 answers

How to fix this error “Invalid command ProxyRequests” while setting up Jenkins?

The reason why you're getting this error ...READ MORE

May 6, 2019 in Jenkins by Vijay
16,015 views