Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

How to redirect port 80 and 8080 to 443 using nginx for a Jenkins server

I am try to redirect anything going to port 80 and 8080 to 443 (https) using nginx. This is for a Jenkins server. I am using ubuntu. This is the nginx config I have at the moment: server { listen ...
0
votes
0answers
20 views

Jenkins credentials.xml merging to another jenkins credentials.xml

I am trying to merge the one jenkins instance into another instance where the credentials.xml is not merging rather replacing. Is there any possible way to merge either script or any helpful ...
0
votes
1answer
19 views

How to interpolate Jenkins environment variables inside Dockerfile?

I have a Jenkins pipeline, One of the stages of the pipeline is to build the artifact from a java application code. The artifact always get the name hello-world-${BUILD_ID}.war using BUILD_ID jenkins ...
0
votes
0answers
15 views

Update bitbucket user ssh keys from jenkins

The jenkins job compiles the source code changes creates a snapshot, after is using the snapshot to create virtual machine based on a template. I want to generate new ssh keys on this virtual machine ...
0
votes
0answers
33 views

Jenkins: Kubernetes plugin configuration for EKS cluster

Jenkins version : 2.204.4 (hosted Jenkins in IBM server) Kubernetes plugin version: 1.24.1 Tested process 1: I am trying to configure Kubernetes plugin with the EKS cluster, but could not get any ...
0
votes
0answers
44 views

Stash and Unstash in jenkins declarative pipeline

pipeline{ agent none stages{ stage('Git checkout'){ agent { label 'master' } steps{ stash includes: '/root/hello-world/*', name: 'mysrc' ...
0
votes
1answer
56 views

How to use for loop in Jenkins declarative pipeline

I am having a list of variable like below allModules = ['module1', 'module2', 'module3', 'module4', 'module11'] I want to use loop then print all the module one by one. Please let me know the ...
0
votes
0answers
21 views

Jenkins not running - OOM

without any noticeable change on my server (Ubuntu 16.04.1) my Jenkins stops working approximately every couple of hours. When I checked logs from Jenkins, there is nothing related. Then I checked ...
1
vote
0answers
90 views

Setup 2FA/MFA on Jenkins

I'm trying to find how to setup 2FA/MFA on users who login to Jenkins, with Google Authenticator. Everything I'm finding is about logins to servers/git/etc, but not for the actual USERS in Jenkins. ...
0
votes
1answer
30 views

Jenkins with Nginx, need to listen only https port

I have Jenkins instance in AWS EC2. I have installed Jenkins with port 8080. And I have nginx as a reverse-proxy. My jenkins.mydomain.com.conf: server { listen 80; server_name ...
0
votes
1answer
122 views

Setup Jenkins on Kubernetes - Error 403

I am on a IaaS Kubernetes k8s on a Virtual Machine. I have setup a nginx and some other apps which are working well. (I can reach my apps) I am using nginx ingress controller. When I try to reach ...
0
votes
1answer
26 views

How to give docker container access to each others?

So far I made 2 docker container using Docker Engine and Docker Compose for a CI proof of concept. The first one is Jenkins and the other one is Gitlab CE. Here are the version Docker version 19.03....
0
votes
1answer
44 views

Occasional permission denied when getting logs using gcloud through Jenkins running as GKE

We are using a Jenkins project to run "gcloud logging read ..." from a shell to get logs from a gcloud container and we occasionally see a permission error in the script: ERROR: (gcloud.logging.read) ...
0
votes
0answers
26 views

Open EXE or TXT with Jenkins after build - Windows 10

So I am working in the CI/CD for an open-source project in Visual Basic 6 (https://github.com/ao-libre/) The problem is when Jenkins finished to do everything and after need to open the exe I am not ...
0
votes
0answers
24 views

Is it possible to import group or role data from LDAP(FreeIPA) to Jenkins to use for its roles feature?

Jenkins has many roles features. If want to sync user data from LDAP(FreeIPA), even create group or role data in LDAP side, then can the data be used for Jenkins' roles feature? Are they the same?
0
votes
0answers
56 views

openssh weird public key authentication fail

I'm quite dumbfounded on this problem, so any advice is appreciated. As a background : My jenkins agent (debian 10) has a job which retrieves a ssh key and writes it to the local workspace. I want to ...
0
votes
0answers
20 views

Control Jenkins Slave + Fastlane from a Jenkins master

I'm trying to make a pipeline / piece of infrastructure where I have these things: fastlane setup on a mac server jenkins slave on said mac server jenkins master in amazon infrastructure github ...
0
votes
1answer
119 views

Jenkins tool installation fails with message: Installer “Run Shell Command” cannot be used to install “<some tool>” on the node “<some node name>”

I have configured Jenkins using Jenkins > Manage Jenkins > Global Tool Configuration to ensure that agents have the required tool chain installed before they work on builds. Why is a pipline build's ...
0
votes
1answer
470 views

issues with launching jenkins agents on kubernetes using kubernetes plugin with jenkins

I am getting the following error trying to integrate jenkins server to kubernetes cluster so that jenkins agents are spun on on the kubernetes cluster to run jobs 2020-02-06 17:21:26.875+0000 [id=961]...
0
votes
2answers
143 views

Bulk delete ec2 snapshots from Jenkins

Use case: Export list of snapshots in txt file (old_snapshots.txt) to S3 bucket. From Jenkins, use aws cp command copy file to Jenkins /tmp/directory --dry-run did not show any error However, when ...
0
votes
1answer
28 views

Jenkins in Docker container refuses to to install anything

I have a Jenkins instance running in a docker container running on an AWS EC2 instance with security group allowing traffic on ports 22, 80, and 8080. I use Ansible to install both: docker and Jenkins....
-1
votes
1answer
260 views

How do I run docker agent in Jenkins on RHEL base image?

I have Jenkins running on RHEL 8. I am trying to run my pipeline, but it is not working, and I think it might be an issue with Podman, because I am able to run the pipeline on my machine which uses ...
0
votes
1answer
1k views

Run python script with Jenkins

I have an .sh file which spawns a simple http server with python3. What I need is to successfully run this file with Jenkins. The job goes "green" but the directory I try to serve with python http ...
0
votes
0answers
22 views

Do I have to purchase java license to use Jenkins? [duplicate]

We are using Jenkins to build and deploy apps to production and staging. While migrating our Jenkins Servers to a newer server, we have realized that apparently Java RTE now requires a license to use. ...
0
votes
0answers
98 views

Can't connect ec2 instance via ssh

My security group setting is valid. Port 22 ssh open for everywhere. After assigned elastic ip to my instance and running jenkins on port 8080 I got the following error: ssh: connect to host ec2-52-...
1
vote
0answers
266 views

What means “Invalid cross-device link” error message inside a Jenkins Docker Pipeline?

I'm trying to setup the software tests inside Jenkins for a legacy project at work. In order to run those tests i need to setup a Docker container based on an old ruby version having several packages ...
1
vote
1answer
1k views

Jenkins Server throws 403 while accessing rest api or using jenkins java client to create job

I am trying to create a job on Jenkins using java client (https://github.com/jenkinsci/java-client-api) by calling .createJob(String jobName, String configXml) . However, Jenkins server throws 403 ...
0
votes
0answers
74 views

Jenkins Master java process high cpu

I have a Jenkins master (2.193) that takes around 700% / 800% of CPU usage. It makes Jenkins crash several times. I can see one java process from user jenkins consuming that CPU. Any idea what is ...
0
votes
1answer
192 views

SSH connection closed/dropped a few seconds after successful login

I have been using a linux instance, as my deploy server and I am connecting my deploy server via Jump server. I used to deploy the artifact from Jenkins. The Deploy will take approx 2 mins to complete....
0
votes
1answer
2k views

Not able to access value of a jenkins groovy variable in shell script for loop

When i am passing value of a variable declared in jenkins Groovy script its value is not retained in "for" loop which runs on a remote server. Strange thing is i am able to access the same value on ...
0
votes
1answer
33 views

Jenkins and Gitlab bundled with Redis and/or nginx?

I'm establishing some monitoring on a few servers running jenkins and GitLab. My Monitoring agent auto discovers lots of metrics and identifies processes. On all of my Jenkins and GitLab servers, I ...
1
vote
1answer
902 views

How do I use AWS EKS with the Jenkins Kubernetes Cloud plugin?

I have found essentially no documentation about how to use the Jenkins Kubernetes Plugin with Amazon EKS. The documentation mentions aws-iam-authenticator and a java setting to change a cache timeout, ...
0
votes
0answers
21 views

How to get the jenkins swarm client connect status?

Is there an API or curl request to query Jenkins swarm client connect status? Because of using swarm client, sometimes we don't know whether the jenkins slaves are connected or if some of them gets ...
0
votes
1answer
234 views

Tomcat and Jenkins: Unable to create the home directory ‘/opt/tomcat/.jenkins’

I'm trying to install Jenkins however I think there is an issue with how I've setup Tomcat. Basically, I followed along an online tutorial to install Tomcat on Ubuntu 16.04: https://www....
2
votes
0answers
388 views

Can't reach own host URL from within Jenkins build docker environment

I am running Jenkins as Docker image (https://hub.docker.com/_/jenkins) From within, I run a node-12 docker image as build container. I am running a script to publish the new version to our local app ...
0
votes
1answer
32 views

'gcloud app deploy app.yaml' not deploying most recent version from Cloud Source Repositories

So I am very new to using GCP. As of right now, I'm using it strictly for my personal website. My website source is currently on Github and I've connected the repository with Cloud Source ...
0
votes
0answers
85 views

kubernetes and sysctl.conf

I have deployed Jenkins based on article https://cloud.google.com/solutions/continuous-delivery-jenkins-kubernetes-engine I'm seeing build errors for my android builds in jenkins with below error ...
0
votes
1answer
604 views

Running ansible playbook commands inside docker image using jenkins pipeline

I have a requirement to create docker ansible image and running playbook using jenkins pipeline. I have created docker image, but I don't understand how docker ansible ssh keys are copied to remote ...
1
vote
1answer
104 views

How to change linux default scheduling method

I've a jenkins server and running a lot of CPU bound compilations. I want to change the scheduler from SCHED_NORMAL to SCHED_BATCH. I know it can be done with chrt but I want the system to use it by ...
0
votes
0answers
38 views

Ownership of copied files after jenkins job

I have a little understanding trouble. We have a php-website which is build with a jenkins job, after the jenkins build is done the whole website will be copied as tarball to the frontend server and ...
0
votes
0answers
119 views

Using HAProxy to provide public access to Jenkins Github Webhook

I'm trying to configure HA proxy so it can provide a public endpoint for a Jenkins instance. I need this public endpoint so that requests to 'github-webhook' can be received. This is the proxy's only ...
-1
votes
2answers
59 views

Will any running process be killed if I free the swap memory from my Ubuntu server?

The question (title of this question) came into my thought for the below reason. If anyone gives a solution of that reason then I don't need to free the swap memory. The Reason: After installation ...
0
votes
0answers
54 views

jenkins console output was not loading when job is running

Usually our jenkins console output used to displays the process what is going on,But since last week its in loading position and once job completed then only it displaying the output. How to resolve ...
0
votes
0answers
148 views

How to update JIRA issue transition with custom field update from Jenkins pipeline

I have an Jenkins pipeline, which will update the transition based on the Jenkins stage. It works fine. Below snippet helps me to update the transition to "Resolved" the JIRA issue from Jenkins ...
0
votes
1answer
130 views

Automate Google 2FA authentication from bash script for copying files with rsync

An automated bash script to generate OTP (verification codes) from Google's 2FA secret key and generated OTP (verification codes) should use for transfer data from one Ubuntu server to another 2FA ...
1
vote
1answer
158 views

How do you make use of the Same Jenkins Slave already being used by Parent Job for the Child Job as well?

Say I have Jenkins Job "abc_job" which calls another jenkins job "xyz_job" depending on certain conditions. Now for some reasons, both of the jobs are suppose to run on the same jenkins slave which ...
0
votes
0answers
153 views

Jenkins with EC2 Plugin - One Permanent Node + Dynamic Nodes

I'm using the EC2 Plugin for Jenkins and I have it set up to create new instances on EC2 from an AMI when there is a new build. The instances have an idle timeout of 2 minutes, and 1 executor. This ...
0
votes
1answer
28 views

Is there a way to terminate spot fleet instances automatically if Status Checks are failed?

I have been using EC2 spot fleet plugin with Jenkins and configured few spot request with that, however, there is a frequent problem I face where one or two of my spot instances fails at "Status ...
0
votes
0answers
576 views

Jenkins slave went offline because of SSH issue

Our Jenkins master/slave setup suddenly stopped working. Both master and slave are AWS ec2 machines and we have a user called jenkins. We are seeing this error: [07/17/19 14:58:04] [SSH] Opening ...
1
vote
1answer
615 views

How to handle certificates in Dockerfile

I am writing a Docker image based off of maven:3.6.0-jdk-11-slim to integrate with our Jenkins Pipeline. I am working in a corporate environment that's behind a pretty tight firewall, and I need to ...

1
2 3 4 5
11