Questions tagged [jenkins]
Jenkins is an extendable open source continuous integration server
651
questions
0
votes
0
answers
363
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
1
answer
459
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
544
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
600
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
2k
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
...
19
votes
5
answers
76k
views
Using GIT variables in a declarative Jenkins pipeline
I'm struggling to access GIT variables in my Jenkins pipeline
I need to know what GIT branch it's been checked out inside some bash code in a stage of the pipeline. I will use this to create ...
0
votes
1
answer
1k
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
46
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
0
answers
2k
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 ...
3
votes
5
answers
18k
views
How to reset Jenkins to its factory settings?
I have installed Jenkins on my Red Hat server following this tutorial. But by mistake I skipped the default plugins part.
I tried deleting /var/lib/jenkins/config.xml but this file getting created ...
17
votes
3
answers
83k
views
how to trigger jenkins job via curl command remotely
I have tried to execute(trigger) jenkins job (not a parameterized job) via curl command by using below methods but it showing these results. my jenkins version is Jenkins 2.73.3
curl -X POST -u ...
0
votes
1
answer
679
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
1
answer
786
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
467
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 ...
1
vote
1
answer
1k
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 ...
4
votes
3
answers
6k
views
Why is Jenkins not pulling in a browser?
I installed Jenkins on my debian server. It is set on port 8080 and when I try connecting to it nothing happens. I know it is running because when I do:
root@jini01:/etc/default# /etc/init.d/jenkins ...
0
votes
1
answer
1k
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
904
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
1k
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....
9
votes
7
answers
21k
views
Is there a way to change the java JRE a linux Jenkins server uses?
A Jenkins server is running under Java 1.7 on a linux machine and I need to change it to 1.8 so that I can run a specific plugin.
The Linux machine has a Java 1.8 JDK/JRE installed, but I cant find a ...
1
vote
1
answer
3k
views
Jenkins folder propery: Is it possible to use a folder defined property on SCM section?
I have a bulk of Jenkins jobs for each release we issue.
I want to be able to easily define a new release, and was happy to find Folder properties Pluging
I defined a folder property for the version:
...
5
votes
3
answers
84k
views
In Jenkins how to pass a parameter from Pipeline job to a freestyle job
I am running a pipeline job and with this we need to pass a parameter to a downsteam job but its not working. We tried as follows:
Pipeline JOB:
node {
parameters {
choice(
...
1
vote
1
answer
3k
views
script run through jenkins user gets killed
In our jenkins build configuration we have the following shell commands (Execute shell) as the last step of our build process.
echo "$USER"
echo "Script executed from: ${PWD}"
git submodule update --...
0
votes
1
answer
2k
views
Jenkins and SVN timeout
I'm having nightmare with proper setup of Jenkins and automatic commits, here's some background:
SVN 1.6.5 is on Apache 2.2.12 (Ubuntu 12)
Jenkins is in version 1.551 (RHEL 6.5)
Problem: last Friday ...
3
votes
1
answer
3k
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 ...
0
votes
1
answer
3k
views
how to setup ssh tunnel to named virtual host running Jenkins
I'm currently setting up server inside our lab at Uni that will be used for multiple purposes including a bibliography database and a CI Server (Jenkins). In order to maintain clean separation of ...
4
votes
0
answers
314
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 ...
1
vote
1
answer
2k
views
Jenkins does not restart slaves after idle timeout
I've got Jenkins set up with a master and one EC2 slave.
The master is set up with # of executors: 0
The slave is set up with
of executors: 2
Stop/Disconnect on Idle Timeout
Utilize this node as ...
0
votes
1
answer
2k
views
Jenkins slave computer: executing an exe which needs to access a network drive fails
In my slave computer, I have an exe that needs, among other things, to access a file on a network drive.
When running this exe from the slave computer, it works fine.
But, when I run it from Jenkins ...
1
vote
1
answer
148
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 :...
1
vote
1
answer
2k
views
Jenkins server not opening ports for slave connection
I'm using Bitnami Jenkins virtual image with VMWare.
I'm getting a ConnectException Connection timed out to my Jenkins server when I try to connect a web start slave. I can access the Jenkins server ...
1
vote
2
answers
2k
views
Using Jenkins to access mysql files on the same instance
I have a Jenkins installation and running mysql server on the same box. One of my jenkins jobs is supposed to tar up the /var/lib/mysql folder but I get the following error
tar: /var/lib/mysql/...
1
vote
2
answers
1k
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 ...
2
votes
1
answer
3k
views
Jenkins change log timestamp to 24 hour format
By default, Jenkins' main log contains timestamps like the following:
Sep 26, 2014 7:03:00 PM hudson.triggers.SCMTrigger$Runner run
INFO: SCM changes detected in main-web-flow. Triggering #613
I ...
2
votes
0
answers
1k
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
2k
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 ...
2
votes
1
answer
7k
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-...
-1
votes
4
answers
7k
views
Redirect to localhost:8080?
I have a Jenkins installation which is accessible at localhost:8080 or if accessing externally as website via IPaddress:8080.
I'd like to access the website with something like IPaddress/jenkins ...
2
votes
1
answer
2k
views
Jenkins with subversion plugin using AD athentication
I'm configuring a Jenkins instance installed as a windows service. In order to download the source code, I would like to use the subversion plugin, but I'm getting an authentication error when I add ...
0
votes
1
answer
2k
views
Jenkins Pipeline: Build docker within docker container
I'm trying to do the following
Checkout the code
Do some prechecks using some other docker images (don't want to install these on Jenkins node)
Build jar using docker image maven:3.6-jdk-8
Then run ...
1
vote
0
answers
567
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
1k
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
...
0
votes
1
answer
3k
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....
1
vote
0
answers
92
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
2k
views
Migrating Jenkins jobs from one server to another
Copied Jenkins "jobs" directory from one A (VB) to server B (AWS). The jobs directory shows up in the server B with all the files in it. But those jobs doesn't populate in Jenkins UI.
Please help.
...
0
votes
1
answer
1k
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 ...
2
votes
2
answers
3k
views
Unable to restart IIS Website from Other Server
We are using Jenkins as our Continous Integration Server. One of our project requires restarting IIS website on other Server. We can use
"cd %windir%\system32\inetsrv
appcmd stop site /site.name:xyz" ...
0
votes
0
answers
684
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 ...
-1
votes
1
answer
253
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
30
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 \
...