Questions tagged [jenkins]

For questions about Jenkins, an open source automation server, and using Jenkins for topics such as building, testing, and deploying software, etc. For questions specifically about Jenkins Plugins use the jenkins-plugins tag.

0
votes
1answer
26 views

How can I install Jenkins on Azure?

Currently I have Jenkins installed on Windows Server as a Service but I am looking at installing Jenkins on Azure but the MSDN docs talk about creating a Jenkins server on an Azure Linux VM from the ...
0
votes
1answer
18 views

How to trim spaces for parameter value in jenkins pipeline?

I am using jenkins pipeline job with parameters. when i had any trailing spaces in parameter value the job gets failed. is there any way to trim the spaces in pipeline job to avoid build failure?
0
votes
0answers
13 views

How to manage volumes correctly with CI/CD workflow with nginx and laravel

Currently in a quandary over the best way to solve this issue. I've currently got jenkins pulling my app down from github repo, then using a workspace container with node, etc etc to build my ...
0
votes
0answers
8 views

Commit messages from Submodules to Jenkins Change Log

I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the ...
0
votes
0answers
6 views

Jenkins Kubernetes agent: multiple containers on dynamic agent pod - jnlp connection refused

so, I have a jenkins Master behind an Nginx reverse proxy on a GCP VM machine, and a GKE kubernetes cluster on which I need to have a dynamic slave pods. the pod has to have as an addition to the ...
0
votes
0answers
9 views

Giitea Webhook x509: certificate signed by unknown authority

On openshift cluster i deployed gitea v1.9.0 and i added a webhook for triggering the pipeline, now i'm getting the following error: Delivery: Post https://ip@:8443/apis/build.openshift.io/v1/...
0
votes
0answers
25 views

Docker fails to mount volume inside Jenkins scripted pipeline

I'm working on a CI Jenkins build with scripted pipeline. From Jenkins on one machine, I'm connecting with already configured Jenkins slave on another machine (M2). I'm able to successfully execute ...
0
votes
0answers
12 views

Jenkins Webhook Management

In my environment I have multiple instances of Jenkins. One instance is the 'prod' instance that is used by developers whereas the others are for me to test upgrading Jenkins, installing Plugins, ...
0
votes
1answer
27 views

How to cache node_modules folder when using Jenkins Multibranch Pipeline

I'm using Jenkins Multibranch Pipeline to handle my CI/CD and I'd like to know if is there a way to cache my node_modules folder? Every time I push a branch, I execute yarn to install the ...
1
vote
0answers
17 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth

I am trying to configure a secured Jenkins server in a company network where GitLab CE is already running. I have set the access control and the authorization system in Jenkins via the GitLab ...
2
votes
0answers
14 views

Update Service Hooks in TFS2015 through Jenkins Job

Is there a way to modify what branch a service hook is monitoring through a Jenkins job? Our build jobs within Jenkins are triggered via service hooks within TFS. When we branch, inevitably we ...
5
votes
3answers
66 views

What is the optimal size of a Jenkins Pipeline Stage?

Should I create single checkout stage or multiple stages like checkout scripts, checkout code, checkout something else? How should I decide on what piece of logic to put into separate stage? Or are ...
0
votes
0answers
16 views

GitHub Payload in Jenkins

I'm using the GitHub plugin with Jenkins, and I'm trying to figure out how I can access the webhook payload. I'm aware that the Generic Webhook Trigger has this ability, as well as the GitHub Pull ...
0
votes
1answer
21 views

How to keep polling GitHub repository and get commits by it's messages on a regular interval using Jenkins?

I need to know how to write a Jenkins job which polls a GitHub repository continuously and send an email of commits made to that repo.
1
vote
1answer
28 views

Jenkins plugin site to ignore certificates

Is there a way that I can tell Jenkins to ignore certificates for the update site. Background I have an air-gapped Jenkins installation and there is currently proper way to make a proxy repo. Thus ...
0
votes
2answers
47 views

Why many companies prefer Jenkins than Aws CodePipeline? [closed]

I have searched few job sites. Many companies are searching engineers who can handle Jenkins as CI platform. I think the Aws CodePipeline is easier than Jenkins. Anyone can advise me, please. Thank ...
0
votes
1answer
23 views

How to automate the process of patching Jenkins Slave instances in AWS

I've been working on an automated patching solution for some infrastructure in one of our AWS accounts. This AWS happens to host the Jenkins instance we use for CI/CD actions, among other things. ...
0
votes
0answers
4 views

How to remove the --config ***** option on Jenkins with mercurial plugin?

I am trying to pull a mercurial repo with Jenkins and using the mercurial plugin. I know I can access the mercurial server normally, and found that the issue is the --config ***** in the command. I ...
0
votes
1answer
20 views

Jenkins Tool vs Slave local tool

What is the difference between using maven as a tool versus having a slave that has maven installed? I am using Jenkins on OCP and it came with a slave image for maven and not setup as a tool. I now ...
0
votes
1answer
16 views

Jenkins run build in docker on server (withDockerServer not working)

I am trying to run my build inside a docker; but I don't want the docker to run on the jenkins master but on another server that has docker running. What does work: inside jenkins configure a docker ...
0
votes
0answers
24 views

Jenkins constantly loses build history

I encounter a problem in Jenkins that is related to build History. The history is constantly resetted to build number 1 even if I don't have any build discarder option added on my Jenkinsfile. If i'm ...
0
votes
2answers
61 views

How to trigger Jenkins Pipeline by push in specific branch in Bitbucket?

I've created Jenkins Pipeline Job, activated "Build when a change is pushed to BitBucket" trigger. I've also specified branches to build. But pipeline is triggered by all branch changes. Also I've ...
1
vote
1answer
56 views

Set environment variables then run script in Jenkins Scripted Pipeline

I am new to Jenkins, Groovy and pipelines. I have created a simple pipeline stage like so: //working build but not setting env variables node('build-01') { stage('Building') { echo "[*] ...
4
votes
1answer
27 views

Pre-install Jenkins plugins using Docker image

If I have a jenkins docker image: FROM jenkins/jenkins:lts is there a way to pre-install certain plugins using the Docker image, for example all the bitbucket plugins: I assume we'd probably have ...
0
votes
2answers
22 views

How to use stored certificate in Jenkins declarative pipeline?

I have a stored certificate in Jenkins, and I need to use it in a pipelinebuild job, but the problem is it appears the Pipeline can't use certificates: trying to use: environment { KEY = ...
0
votes
2answers
30 views

Using password protected ssh keys

If you use password-protected SSH keys, is there a way to pass the password at the command line automatically instead of manually typing it? E.g. something like: ssh-add <key> -p password
0
votes
1answer
34 views

Jenkins fails to start after restart because of google login plugin had an exception

Jenkins version : Jenkins ver. 2.32.1 Google Login Plugin version : 1.3 I got this error after I restart my jenkins, can anyone suggest me how to solve it ? The thing is : -I already make sure that ...
0
votes
3answers
37 views

How to deploy Node app via Jenkins to Ubuntu(18.04)?

I'm a very beginner in Jenkins and afraid that I ask you something not clear with a weird question. I'd like to deploy my simple node app server to Ubuntu via Jenkins. I tried to write a command in ...
0
votes
1answer
24 views

Best Practice Authenticating Jenkins to Bitbucket to Access Team Repository

What's the "best-practice" approach to authenticate a CI tool like Jenkins or Bamboo to BitBucket? I started with App Passwords because it's cheap and easy, but I hate that it's tied to my account ...
0
votes
0answers
28 views

Building ASP.NET core app with dockerfile in Jenkins

I have a GitHub Enterprise repository which contains an ASP.NET Core WebAPI sample project with just ValueController. I also have access to Jenkins instance most probably running on Docker somewhere ...
0
votes
1answer
83 views

Load Balancing of Jenkins Nodes without Load Balancing Plugin?

we currently want to introduce a loadbalancing on the Jenkins server and our nodes. I have already created several nodes. Currently it is also so that if a node is blocked accordingly, that the next ...
0
votes
1answer
35 views

Python Script in Jenkins

I am trying to run a python script in Jenkins. My Jenkins job is integrated with Jira & on build its gives JIRA_ISSUE_KEY. I want to save the value of JIRA_ISSUE_KEY in a variable. import ...
0
votes
0answers
32 views

jenkins pipeline parameters grouping

I am using 'choice' parameter in Jenkins pipeline(Declarative) and I have over 25 different parameters. I am looking to group the parameters into 4/5 choices but still want the option to be able to ...
1
vote
2answers
165 views

Jenkins Shared lib not working properly

Recently I tried to add Shared Libraries to my Jenkins instance to make it easier to maintain all code that runs in each project. I have a repo myorg/jenkins Inside of it I have Jenkinsfile and ...
1
vote
1answer
25 views

Elastic Beanstalk give error Root Object doesn't exist in Jenkins

I create a Jenkins job which uploads my war file to elastic beanstalk. But when I start to build it gives error java.lang.IllegalArgumentException: Root Object doesn't exist Below is my ...
1
vote
1answer
47 views

Best practice for Jenkins docker to deploy to other container

I'm currently experimenting with docker with the potential of using it in future professional projects and am a bit confused about best practices. In my experimental setup I have three docker ...
0
votes
0answers
92 views

Get parameters for all currently running builds of a jenkins job

I need an API call that shows all the parameters for each build of a jenkins job that are currently running. In other words, I want to see a list of all the current builds of job example-job, with ...
0
votes
0answers
34 views

Running a rollback pipeline on abort in Jenkins?

I've got a set of build pipelines and I've developed a new rollback feature. Running the rollback pipeline manually invokes the rollback actions and does what I expect. I'm also trying to capture any ...
0
votes
1answer
415 views

Multiple levels of parallel stages in a Jenkins declarative pipeline

I need to define a declarative pipeline with multiple levels of parallel stages as such: 1 Prebuild_action1 2 Prebuild_action2 3.1 Build platform_1 4.1 Test1 platform_1 4.2 Test2 platform_1 4....
2
votes
2answers
114 views

One Jenkinsfile or multiple?

So I have a Jenkinsfile defining a build pipeline and then a Jenkins job (not pipeline) with a very simple deployment script for our Docker stacks. Seeing that Jenkinsfiles can become as complex and ...
1
vote
1answer
59 views

Jenkins SSH connection on remote server immediately closes after login

I created a user for jenkins on my remote server that worked previously just fine, but now when I try to login with shh on the server the connection closes immediately after login. This is strange ...
0
votes
1answer
107 views

In jenkins, how to re-run old builds of a job?

Some old builds are failed in my jenkins job and I need to re-run them again. How to do that?
0
votes
2answers
16 views

How do i specify the path of a Dockerfile using Blue Ocean

I want my pipeline created using Blue Ocean (Jenkins) to build with a dockerfile that is not in the root of the git repo. How do I achieve this? Our git repo is a collection of sub-projects with each ...
0
votes
0answers
9 views

How to avoiding the clone of jobs such that existing configuration can be reused for new releases and bringing in optimal usage of Jenkins?

I have jenkins Jobs tightly integrated with versions, needing the job to be cloned and configured for every release. for eg: i have aws-2.3.0-pp and aws-trunk-pp, how about having aws-Generic-...
3
votes
2answers
142 views

Every jenkins build shows error: ln builds/lastSuccessfulBuild /root/.jenkins/jobs/Build/lastSuccessful failed

I migrate my jenkins to new machine succesfully,but after migrate all jenkins job run succesfully. but every build give following error: ln builds/lastSuccessfulBuild /root/.jenkins/jobs/BeepnRide/...
0
votes
1answer
236 views

Jenkins - Scripted Pipeline - Input String

I am struggling to set up an input step in a scripted Jenkins pipeline that will let me as the user to input a string. Scenario: I am building a Docker image. I want to ask the user what tags to tag ...
1
vote
1answer
28 views

Secure Jenkins X on kubernetes

I install Jenkins X on kubernetes. I want to change the default installation and secure the Jenkins url, so it will be not accessible from the public. Can i change it to some port, or some way to ...
0
votes
0answers
10 views

Seeking help configuring Jenkins MSBuild plugin

Over on Stackoverflow I posted an issue with the MSBuild plugin in Jenkins. Hoping to raise awareness and reach the devops audience by reposting here. Link to stackoverflow issue In a nutshell, I ...
0
votes
0answers
33 views

Write configuration to stdout in Jenkins Pipeline?

Can I write generated configurations to standard out in Jenkins as demonstrated in the below sample? Use Case node(example) { container(example) { # generator writes configurations to stdout ...
0
votes
0answers
27 views

Regarding changing IP address configured in xml files of JENKINS_HOME directory based on container IP address

I have jenkins installed and running in a remote machine. Planned to move this complete setup to container environment, so took the complete backup of JENKINS_HOME directory of the remote machine to ...