Questions tagged [jenkins]
Jenkins is an extendable open source continuous integration server
652
questions
0
votes
0
answers
26
views
Azure DevOps with Boomi (or) Jenkins with Boomi for CI/CD automation with various stages
Are there any methods by which we can integrate Dell Boomi with Azure DevOps or Jenkins to implement CI/CD automation with various stages including unit testing and SonarQube etc?
Any help with tools ...
0
votes
2
answers
248
views
how to start the linux tomcat on nohup mode on jenkins
I used below command in jenkins, After execute this command, It shows that tomcat is started but tomcat is not started
#!/bin/bash
TOMCAT_HOME=/home/apache-tomcat
nohup $TOMCAT_HOME/bin/startup.sh &...
0
votes
0
answers
132
views
How to configure the Kubernetes plugin in Jenkins
I have Jenkins Master running on an EC2 in AWS. I then created a pipeline in EKS. Both the Jenkins Master and the pipeline are running in the same VPC. It is from the Jenkins Master that I create ...
0
votes
0
answers
132
views
Unable to connect Jenkins master VM (Linux) from a windows slave VM through agent.jar
Command ran to connect :
java -jar agent.jar -jnlpUrl http://vmnx-testvm01.eur.ad.sag:8080/computer/vmdkp01%2Eeur%2Ead%2Esag/jenkins-agent.jnlp -secret ...
0
votes
1
answer
50
views
Jenkins - Space distribution
We are running a Jenkins server with multiple nodes. After some time and more and more projects that got added to the instance, we are encountering multiple issues (that we have to few people to solve,...
0
votes
0
answers
25
views
Jenkins with GCP ephemeral agents take much longer to start agent with declarative pipeline
We have a jenkins instance using ephemeral agents in gcp. We use container image to build in. Our existing pipeline (scripted and setup via gui) takes about 5-10 seconds to spin up an agent and start ...
1
vote
1
answer
101
views
Why was I unable to rebuild jobs?
I have a jenkins server which jenkins was upgraded from version 2.220 to 2.387.1, all plugins have been upgraded.
When I rebuilt jobs, it gave me these output:
Started by user abc
Running as SYSTEM
...
0
votes
0
answers
256
views
jenkins on kubernetes, jobs are not running, how to fix that?
When I to run any job, getting this error in jenkins logs. The job just stuck in pending state.
fully completed. We have now 2 computer(s)
2023-03-27 15:21:32.237+0000 [id=34] WARNING j.u....
0
votes
0
answers
306
views
Kubernetes plugin is not creating any containers in the cluster even the test connection is successful in jenkins, how to fix that?
Kubernetes plugin is not creating any containers in the cluster even the test connection is successful in jenkins, how to fix that?
My jenkins log:
Running from: /usr/share/jenkins/jenkins.war
2023-03-...
0
votes
0
answers
160
views
Unable to save jenkins system configuration, how to fix that?
I am running jenkins in eks cluster.
Till yesterday it worked, but today when I want to change any configuration in the jenkins system configuration page, it is not saving anything and page is also ...
0
votes
0
answers
74
views
How to run the following commands on the master node before executing any pipeline in Jenkins. can't find any option to run pre build step
How to run the following commands on the master node before executing any pipeline in Jenkins. can't find any option to run pre build step.
docker system prune --all
docker volume prune
0
votes
0
answers
303
views
How to build a docker image using kuberntes agent?
Below is the configuration in kubernetes plugin I set.
My jenkins pipeline.
pipeline {
agent {
kubernetes {
label 'my-docker-build'
defaultContainer 'jnlp'
...
0
votes
0
answers
915
views
How to build a docker image from jenkins agent running on kubernetes?
I tried below pipeline code to check whether docker commands work first but failing.
pipeline {
agent {
kubernetes {
yaml """
apiVersion: v1
kind: Pod
...
0
votes
0
answers
89
views
The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing
I created a jenkins free style job
I inserted my github repo, Installed maven on the server,
When I run the job I get error:
The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is ...
0
votes
1
answer
41
views
How to protect Jenkins from super users?
Any super user who has access to the Jenkins running on a Linux server can easily disable security authentication from config.xml file; then log in and can also decrypt sensitive passwords from ...
0
votes
1
answer
651
views
poetry command not found after installing it on jenkins
I'm using Jenkins to build a python package using poetry, here is the stage command to install poetry on the Jenkinsfile
stage('poetry'){
steps {
sh 'curl -sSL https://install.python-poetry.org |...
0
votes
1
answer
269
views
Deploying helm chart of jenkins giving error as invalid image name, even it is correct. How to fix that?
Deploying helm chart of jenkins giving error as invalid image name, even it is correct. How to fix that?
kubectl get po -n jenkins
NAME READY STATUS RESTARTS AGE
jenkins-0 ...
0
votes
0
answers
80
views
How do I use SVN+SSH with a custom port and externals on Jenkins
We use SVN with SSH because it is better than anonymous access and the HTTP setup looked complicated and difficult to use when I was setting up authenticated SVN.
Subversion uses a custom port because ...
0
votes
0
answers
94
views
jenkins multibranch - why jenkinsfile checkout only main
I have seen a multibranch example : https://devopscube.com/jenkins-multibranch-pipeline-tutorial/?unapproved=49471&moderation-hash=53d25ad46b16419cf56ed585dbf9d693#comment-49471
Why the ...
0
votes
0
answers
954
views
Jenkinsfile - Build only if change in a specific subdirectory, how to manage post action
Basically, we're doing trunk development here, and got tons of services under the same directory.
I have a Jenkins job that is triggered through GitHub webhook, and that will do some actions only if ...
0
votes
0
answers
180
views
How to configure jenkins to a subdomain url?
I am trying to configure jenkins to an existing ALB by creating a target group(instance type) and rule.
In the rule I kept like this.
dev.companyname.com/jenkins
But when I click on the url, it is ...
0
votes
1
answer
402
views
Jenkins groovy Pipline code is stop working with Docker Build steps
Jenkins was working fine after update stopped working and I roll back manually from latest version to previous and remove the plugins from Plugin Folder and install again as per the requirements:
...
0
votes
0
answers
297
views
Debugging Jenkins pipelines and shared library
We are using both scripted and declarative pipelines. In CI flow we are using Jenkinsfile and in some other flows we are using Jenkins GUI pipelines which triggers different functionality from shared ...
0
votes
0
answers
92
views
Is there anyway i can build iOS app using Jenkins without using MAC machine (even without using slave MAC mechine)
In our organisation, we have Jenkins master server running on Linux, and able to build the Android apps and deploy it to app store.
But how to use the same Jenkins server to build the pipeline for the ...
0
votes
0
answers
141
views
Why did the SSH API of my Jenkins instance get so slow?
Accessing my Jenkins 2.319.1 instance via SSH get very slow a few days ago. I don't know what changed.
To narrow it down: Accessing Jenkins via HTTPS API is OK. The performance of the Web API is OK, ...
0
votes
0
answers
335
views
site can't be reached error while accessing jenkins
I installed jenkins on ubuntu it is successfully installed. But while i access through browser by using IP_Address:8080 it shows site can't be reached shows.
i tried sudo ufw allow 8080 and sudo ufw ...
0
votes
1
answer
436
views
Jenkins Plugins Error After Update - "Errors Checking Update Site"
I'm running Jenkins on a RHEL 7.9 server, with OpenJDK 11.0.17. I recently updated Jenkins to version 2.361.4 from 2.346.3. After updating I went to the plugins manager page to see what plugins ...
0
votes
0
answers
100
views
jenkins ssh agent set variable with
Iam using this command to set variable
ssh -o StrictHostKeyChecking=no -l ec2-user 1.1.1.1 export GRAFANA=$(kubectl get svc grafana -n grafana -o jsonpath='{.status.loadBalancer.ingress[*].hostname}')
...
0
votes
0
answers
109
views
How to Deploy a war files in docker container by using jenkins free style job?
I have a Redhat8 server, on that server I install docker. I take the centos8 image and create a container. In that container I install tomcat. manually I deployed wars in that container until now all ...
1
vote
1
answer
634
views
RHEL 8 - yum commands started throwing a 470 error
I am using RHEL 8 on a Jenkins agent and have been trying to install the required dependencies using yum. After some trial and error, I started receiving the following error on
yum update -y
Error: ...
0
votes
1
answer
778
views
Ansible and Jenkins: "winrm is not installed: cannot import name utils
I started to learn Ansible and Jenkins a few days ago. I'm stuck on one particular problem and despite many efforts can't figure it out. I have a very basic playbook that runs OK if I run it directly ...
0
votes
0
answers
694
views
Can't download Jenkins on Ubuntu 22.04
I'm trying to download and install Jenkins on my VPS after reinstalling the image (Ubuntu 22.04) but I always get an error while trying to download it.
I followed Jenkins original guide to get it ...
3
votes
2
answers
846
views
Jenkins refuses to start - unknown argument --ajp13Port=-1
My jenkins installation on Debian was upgraded (using apt) - and now jenkins refuses to start. I can see the following in the log:
Exception in thread "main" java.lang....
0
votes
0
answers
168
views
Trigger downstream Jenkins job on timed loop until upstream job has completed
I run a Jenkins server on Linux that has a number of agents connected to it, some Linux and some Windows. All the jobs on the controller are managed using the Jenkins DSL.
At the moment I have an ...
1
vote
1
answer
685
views
Jenkins agent is not honoring hudson.TcpSlaveAgentListener.hostName
Background / Environment:
Jenkins 2.3x on Ubuntu 20.04
I am trying to use a Jenkins Agent installed on the same system as Jenkins server. Ideally it will connect to just "localhost" when ...
0
votes
0
answers
31
views
Ubuntu Apache Redirect All Request to HTTPS except Jenkins
I am creating a configuring a Server using Ubuntu and Apache. Everything works fine except that when I use redirection of HTTP to HTTPS.
How can I write an exception case where every http request is ...
0
votes
0
answers
369
views
Jenkins SonarQube Scanner's withSonarQubeEnv and Docker build container
I build my app from Jenkins inside a Docker container using a series of commands like docker exec mycontainer /bin/bash -c 'mvn clean install'. I'm also used to the SonarQube plugin to configure the ...
1
vote
1
answer
116
views
Ansible & Jenkins
here is my problem
I run a playbook on jenkins with extra variables, I want to test in my playbook is variables are defined
ansible [core 2.12.1] , jenkins plugin 1.1
here is the command from jenkins :...
2
votes
1
answer
2k
views
Jenkins pipelines do not resume properly after Jenkins restart
Issue Summary:
Jenkins LTS + The Durable Task plugin does not properly resume a pipeline job if the Jenkins service is restarted during the task run.
This is a regression in Jenkins 2.3x and seems to ...
1
vote
2
answers
886
views
Cleaning Jenkins workspace but keep Python .venv intact
This question pertains to working with a Python + Poetry project within a Jenkins pipeline and how to retain the .venv/
SCENARIO:
I have a Jenkins Pipeline job that triggers a Python project. The ...
1
vote
0
answers
966
views
reserved for jobs with matching label expression when using declarative pipeline
I'm tasked to write Jenkinsfiles for a Jenkins cluster that I do not manage.
I'm facing an issue where some of my jobs are hanging with the message "xxxx is reserved for jobs with matching label ...
1
vote
1
answer
1k
views
Alternative to Jenkins Extended Choice Parameter plugin? [closed]
The Jenkins "Extended Choice Parameter" plugin (https://plugins.jenkins.io/extended-choice-parameter/) has been marked "vulnerable" on the Jenkins website for some time.
Does ...
1
vote
0
answers
415
views
Jenkins can't connect to agent on docker
I have jenkins installed and a docker added as cloud. I did the docker image for the agent on docker, that's its code
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&...
1
vote
1
answer
949
views
How to know the jenkins version supported by a plugin
My Jenkins version is 2.222.1
I want users to be able to login and upload file to Jenkins using job. For that I tried installing the file parameter plugin https://plugins.jenkins.io/file-parameters
...
1
vote
0
answers
65
views
Using the Groovy DSL, how do I let the user chose a node?
I have a primary server running Jenkins, and it is attached to 5 nodes. I want the user (all members of our QA team) to be able to log in, deploy a particular git branch to a particular node, and then ...
0
votes
1
answer
813
views
Unable to kill a process by Jenkins : operation not permitted
I am using Jenkins in centos 9 Server. My intention is that Jenkins will kill the existing Java jar process and will restart the new build Jar. previously I have used the same command for centos 8 but ...
0
votes
0
answers
569
views
Error in installing Jenkins
I am facing issues while installing jenkins on my ubuntu14.04 server. Java version is 1.8.
Steps followed as root:
wget --no-check-certificate -qO - https://pkg.jenkins.io/debian/jenkins.io.key | sudo ...
0
votes
1
answer
233
views
Are Jenkins Debian Repo keys necessary
I am in the process of migrating an application that needs a running Jenkins instance on the same server.
The deployment of the application happens through Ansible. In the steps, there is a ...
0
votes
0
answers
25
views
unable to install jenkins in centos 9
I have tried to install jenkins several times by following the instruction given in the official site. But failed. Below I am giving the instructions.
sudo wget -O /etc/yum.repos.d/jenkins.repo \
...
0
votes
1
answer
392
views
Jenkins running as a service restarts by itself after upgrade from 2.303.2 to 2.319.3
I upgraded Jenkins (running as a service) from version 2.235.5 to 2.303.2 (by just replacing .war file and restarting the service), which seemed to work pretty stable. Before doing it, I upgraded Java ...