2022 Developer Survey is open! Take survey.

Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Jenkins Multibranch pipeline organisation folder with JCasC not Initialising at startup - Requires "Save" through UI

I am configuring Jenkins 2.332.3 with JCasC and the Multibranch pipeline. The pipeline is generally OK but it requires that we click This folder is empty | Configure the Project and then Save for it ...
user avatar
  • 103
0 votes
1 answer
33 views

Not able to use for loop using bash in Jenkins pipeline

Following is my code stage ('Connect to cluster (update kubeconfig)') { steps { script { dir("${env.WORKSPACE}/gke-infra-creation") { ...
user avatar
  • 421
0 votes
0 answers
30 views

Trying to install Ansible plugin on Jenkins

I tried to install the Ansible plugin on Jenkins which is hosted on my local machine but it gave me this error, I am unsure what is wrong, so can someone explain to me what it wants me to set and how ...
user avatar
  • 1
0 votes
0 answers
15 views

How to increase the number of groups send by ADFS via SAML to Jenkins?

Yesterday we managed to integrate the CI Server Jenkins with Microsoft ADFS via SAML 2.0. When configuring the roles in Jenkins to the recieved groups of the user we noticed that only 80 groups are ...
user avatar
0 votes
0 answers
29 views

When calling script from jenkins it is not working as expected

we have one react application and start it using pm2 with pm2 start manually. We have written one script to run it, it is working as expected when we run script manually on server. But when calling ...
user avatar
0 votes
0 answers
38 views

How to redirect nginx based on sub path?

I have grafana and jenkins running on same azure vm. For jenkins: http://localhost:8080 For grafana: http://localhost:3000 I thought to set nginx in such a way. customdomain.com/grafana should go to ...
user avatar
0 votes
1 answer
78 views

How to disable 8080 external access to jenkins?

I have installed nginx along with jenkins on ubuntu 21 machine. Configured nginx to redirect 80 traffic to 8080 using the steps in this link Now, able to redirect the traffic from 80 to 8080. So, to ...
user avatar
0 votes
2 answers
30 views

Error while installing jenkins in ubuntu

While installing jenkins in ubuntu getting the following error: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 6007 (unattended-upgr) N: Be aware that removing the lock file ...
user avatar
0 votes
0 answers
32 views

How to send jenkins stage view in email?

We can send email noification whether success or failure in email of jenkins pipeline. But it is not visual to understand clearly by the team members. So, I kept stage name in an environment variable ...
user avatar
0 votes
1 answer
34 views

Private Docker registry w/ NFS storage and Jenkins

I would essentially like to run a private docker registry on an internal LAN that would provide read-only access to a couple of Jenkins nodes. Jenkins Pipeline seems to only allow images from a local ...
user avatar
1 vote
0 answers
47 views

Setup Jenkins permanent agent over internal network

I'm trying to connect a permanent Jenkins node to a Jenkins master instance inside of the same AWS VPC. The setup: Jenkins master instance inside AWS, in a private subnet fronted by an internet load-...
user avatar
  • 186
0 votes
0 answers
47 views

How to render parameter values based on other parameter in jenkins?

I have seen active choice parameter plugin from this link Here, they have provided sample so that when I select a parameter, it should change the values of other parameter. Like in Active Choices ...
user avatar
0 votes
1 answer
430 views

Jenkins Shell script not working. Yarn: command not found

I am running jenkins to build a react app and executing shell commands to build the app automatically. I following are the bash commands cd /var/www/FarmGroWeb sudo git reset --hard sudo git pull ...
user avatar
0 votes
0 answers
18 views

Dockerfile for Jenkins Container

I know that there’s an image available ready for Jenkins, but I’m trying to build a Dockerfile to run Jenkins in a container, as I’m still learning the fundamentals of Docker and Jenkins. I tried to ...
user avatar
1 vote
1 answer
231 views

Jenkins after HTTPS reverse proxy keeps on redirecting to HTTP

We have set up Jenkins behind an Apache reverse server with HTTPS. Although the default Jenkins URL is set to https://... in Jenkins and links on the GUI are working fine, all redirects ("302 ...
user avatar
  • 121
0 votes
0 answers
45 views

Jenkins pipeline using docker agent can't push on artifactory due to jvm cacert

I need to push some jar files obtained during a Jenkins pipeline, to Jfrog; below the code: stage ('Artifactory configuration') { when { expression { params.runDelivery } } ...
user avatar
  • 101
0 votes
0 answers
413 views

In Gitab repo Merge Requests shows "Checking pipeline status" as stuck

We recently updated gitlab server and we can see for some repos while creating Merge Requests we can see "Checking pipeline status" as stuck. We verified and confirmed settings for "...
user avatar
  • 535
0 votes
0 answers
79 views

Jenkins cannot run ssh-agent, but local container can

I'm trying to configure an SSH key on my Jenkins instance with the SSH Agent Plugin. Jenkins is using Kubernetes containers as workers. My worker container image is alpine based, and just installs ...
user avatar
  • 229
0 votes
0 answers
24 views

Is there a way to configure Bitbucket to show compiler warnings in PRs?

A common problem we have at work is people committing code without having noticed that they're increasing the number of compiler warnings. The ultimate goal is to make warnings errors, but until the ...
user avatar
  • 101
0 votes
1 answer
284 views

Pass variable value from one build step to other in jenkins job

I want to pass variable value from one build step that is from 'execute shell' to 'send files or execute commands over SSH" my script in Execute shell* is: if [ "$var" == "1"];...
user avatar
0 votes
1 answer
106 views

Environment variables in Jenkinsfile

I have a github project with my Jenkinsfile used for deployment, actually managing only the dev environment. I'd like to manage the production environment as well, and some parameters would differ ...
user avatar
1 vote
1 answer
186 views

Where is Jenkins CLI .jar file stored on the server?

I am using the Jenkins CLI in a script for some Jenkins automation (https://www.jenkins.io/doc/book/managing/cli/). According to the docs, you have to first download the .jar from the Jenkins host. ...
user avatar
  • 180
0 votes
0 answers
15 views

How to create events in github page using jenkins?

We have a jenkins server where we are creating our services using jenkins pipeline tasks on aws. For somehow, if the build fails, we are destroying the services we created at the end. Is there anyway ...
user avatar
  • 339
1 vote
1 answer
393 views

How to fix python module not found error with jenkins?

I ran pip freeze command with my jenkins job and below is the output pip freeze fpdf==1.7.2 textfile==0.1.4 pip install textfile Requirement already satisfied: textfile in c:\python39\lib\site-...
user avatar
  • 339
0 votes
1 answer
111 views

Deploy dot net web app using dotnet publish to remote IIS server

Using dotnet publish, how do I deploy a dotnet core web application to a IIS server hosted remotely? What is the best way to do that? I am setting up Jenkins for CICD for this app and need this ...
user avatar
  • 251
0 votes
1 answer
50 views

unable to establish connection b/w dependency track and jenkins

I'm trying establish connection b/w Jenkins and dependency track . Jenkins, i have mentioned track url but i'm getting connection failed error. And I have added api token. please let me know where im ...
user avatar
0 votes
0 answers
65 views

jenkins job to deploy latest version in new env, using the deployed version

I have a jenkins job with multiple applications, each with 4 environment namely DEV, TEST,QA and PROD. I am using ansible playbook to deploy the artifact in each environment. I have deployed an ...
user avatar
0 votes
0 answers
95 views

Unable to configure LDAP in jenkins and gettig Authentication error

After giving the valid LDAP details in Jenkins, getting the error message as shown below: Login Authentication: failed for user "twice" Lookup User lookup: user "twice" does not ...
user avatar
0 votes
0 answers
24 views

How to test updates of Jenkins and its plugins on a cloned docker container with volume

I migrated this question from SO due to lack of feedback. I am running an instance of Jenkins on a docker container and, most likely as a result of some mistakes in learning how to configure it, I ...
user avatar
0 votes
0 answers
38 views

Start with Jenkins in k8s on Linode / Vultr / DigitalOcean

I'm going to setup a basic jenkins infrastructure to deploy to my website. Very basic stuff. I want some dedicated machines / compute engines for it. So I'm thinking of using a Kubernetes cluster from ...
user avatar
1 vote
0 answers
25 views

Same Jenkinsfile works differently in two apparently equal servers

I've been forced to change a jenkins server from one server to another twice. The first time, I moved it from an Ubuntu 20.04 server to an Ubuntu 21 without problems; the build (multibranch pipeline) ...
user avatar
  • 119
0 votes
0 answers
349 views

How to configure jenkins-agent to allow ssh via password?

I am trying to add a jenkins agent running Rocky Linux 8. How do I configure an jenkins-agent to allow ssh connection from the jenkins-controller via password? I did the following steps on the new ...
user avatar
  • 115
0 votes
0 answers
155 views

Jenkins: Unable to connect to the server. executable aws not found

I run Jenkins on OS X and at one step, I receive the following error, Constructing AWS CredentialsSetting AWS region us-east-1a [Pipeline] { [Pipeline] sh + echo 'Deploy blue container...' Deploy ...
user avatar
  • 101
0 votes
1 answer
253 views

Jenkins networking configuration parameters are to be used when installing or when running jenkins?

After installing Jenkins (the old fashioned way, not a docker container) I've realised that the current Jenkins network configuration (all its defaults) does not allow me to proxy https requests from ...
user avatar
  • 119
0 votes
1 answer
3k views

No such file or directory when trying to create .ssh keys

When I attempt to create ssh keys on my Debian instance : ssh-keygen -f /home/serverkeys/.ssh/id_rsa I am getting the error : Saving key "/home/serverkeys/.ssh/id_rsa" failed: No such file ...
user avatar
  • 113
0 votes
0 answers
20 views

Using a RHEL system in a Jenkins pipeline, issues with permissions in docker-compose volumes

I have an RHEL 7 Jenkins agent. On this agent, I have configured a pipeline to simply pull some code and do a sh 'docker-compose up' with the following compose file. version: '3' services: ...
user avatar
0 votes
1 answer
1k views

Not able to access groovy variable inside shell script in JenkinsFile

def NAMESPACE = "Dev" def BODY= sh( script:'''body=$(cat <<-EOF { "name": "${NAMESPACE}", "type": "regularwebapp" } EOF ) (echo $body)''...
user avatar
  • 1
0 votes
0 answers
146 views

Ansible freeze on connect in Gathering Facts

I run the Ansible Playbook via Jenkins, but the role freezes when connected. I generated a couple of keys. I put the public key in the target server (/root/.ssh/) and set the private key in Jenkins ...
user avatar
0 votes
1 answer
81 views

Jenkins - Run job if other multiple jobs are successful

How can I start a job if all 3 other jobs are successful? Here is the scenario: job1 - build module 1 job2 - build module 2 job3 - build module 3 job4 - main program Run job4 (main program) if all ...
user avatar
  • 323
0 votes
0 answers
404 views

How to create a SSH connection between Ansible and Jenkins containers

I'm new to Jenkins. My goal is to create a Jenkins job\pipeline that will activate a group of ansible's playbook files - which will create a long installation of my tested product. I build 2 ...
user avatar
  • 67
0 votes
0 answers
75 views

GKE Kubernetes blue/green deployment error window

We have a container cluster with mode: Autopilot running in GKE. We are currently receiving errors in a short window when performing a "blue/green"-deployment from Jenkins. When we switch ...
user avatar
  • 165
0 votes
0 answers
51 views

Jenkins - Get POM_VERSION without the string SNAPSHOT or RELEASE

I need to extract the version 1.1.0-SNAPSHOT from POM_VERSION to just "1.1.0". Is there a way to extract just the version when using Windows batch command? url -u %tcuser%:%tcpass% '-T .\...
user avatar
  • 323
0 votes
0 answers
95 views

Jenkins maven curl - Can't open target/**.war

I'm trying to deploy war file using Tomcat manager remote deploy script but I get the error 'Can't open 'target/**war' file. I'm following a tutorial and it works for the author. https://community....
user avatar
  • 323
0 votes
1 answer
75 views

Set scoped environment variables for Jenkins pipeline from Jenkins, not from the Jenkinsfile

Is there some way intended to store non-sensitive data in Jenkins scoped to a build configuration so it can be read from a pipeline script? We're migrating to a new Octopus Deploy server, and our ...
user avatar
0 votes
1 answer
2k views

How to apply multiple labels to jenkins nodes?

When I apply a label to Node, it is working as expected and the job able to pick this node. But, if I apply multiple labels, it is not working. As I observe, it is taking both of them as single label. ...
user avatar
  • 339
0 votes
0 answers
123 views

Jenkins linux master <=> windows build agent/slave WMI issue

I'm trying to set up a build agent on a windows host using this plugin in Jenkins: https://plugins.jenkins.io/windows-slaves/ I've configured the windows build agent/node on the Jenkins master, and ...
user avatar
0 votes
0 answers
16 views

How to link a node from restricted environment to GitHub actions?

We have three servers in a restricted environment of aws. We connect to a jumpbox server and from there we will access three windows server machines. In these windows servers we installed jenkins on ...
user avatar
  • 339
0 votes
0 answers
238 views

Need to trigger downstream mutlibranch pipeline job with all parameters from upstream job

Have a multibranch pipeline that needs to trigger the build of a downstream job and give the downstream job all of the parameters that the original multibranch pipeline job ran with on the same branch ...
user avatar
0 votes
0 answers
72 views

Jenkins remote build agent build and return artifact to master?

I currently have a master node (Linux host) set up, which is not defaulting to do any building, and a remote build node (Linux host) set up that performs builds. My artifacts are building on the ...
user avatar
0 votes
1 answer
149 views

Jenkins Linux Master + Windows Build agent?

Will a Jenkins Linux master work with a Windows build agent? Does anyone know if this set up can be achieved and is supported? Just looking for a proof of concept and that this can work so I can ...
user avatar

1
2 3 4 5
13