Questions tagged [jenkins]
Jenkins is an open source continuous integration server
128 questions
0
votes
0
answers
62
views
Can not run script with jenkins user
My host is on alpine Linux and I'm running a jenkins agent on docker. I need the jenkins agent to be able to run a script when it does a build that changes the ownership of a few directories. Every ...
0
votes
0
answers
32
views
Docker return error in Jenkins pipeline
Need some guidance. I am trying to deploy a container in remote server and used groovy script to do this task. I am getting error like below,
[2025-04-02T04:26:43.369Z] + ssh -o StrictHostKeyChecking=...
1
vote
0
answers
150
views
"ulimit -c unlimited" fails when done "sudo user -c shell-some-script"
I have on a Linux server with SuSE Linux Enterprise 15 SP5 the following situation:
I have two unpriv users "sisis" and "jenkins" which are both allowed (based on entries in /etc/...
1
vote
0
answers
824
views
Jenkins Fontconfig head is null even after installing fontconfig
I am trying to install generic Jenkins with jenkins.war. Getting following error while starting.
2024-03-05 15:23:36.018+0000 [id=1] SEVERE hudson.util.BootFailure#publish: Failed to initialize ...
0
votes
1
answer
171
views
Why does this script variable keep showing as "null"?
I have the following script:
def String Service_version = sh "cd ./projects/onehome && pwd && cat package.json | grep version"
echo "Service_Version_update: ...
0
votes
0
answers
963
views
How can I echo/print the environment files of a directory/path in a Jenkinsfile during a build?
In a Jenkins file, I have the following code:
#!/usr/bin/env groovy
....
def env_prod = 'prod.env'
def entrypoint = "${env.WORKSPACE}
The above is then combined like this:
${env.WORKSPACE}/$...
0
votes
0
answers
77
views
Why are four Jenkins build nodes suddenly having fatal problems finding things on the PATH?
In our overall organization, we run Jenkins 2.303.1 onprem. We run thousands of builds a day. The project I work on uses one Jenkins master and a set of about ten build nodes. We build a few hundred ...
0
votes
1
answer
850
views
declare: not found error in Jenkins pipeline
I have a Jenkins pipeline which has a step running a sh script. Something like this, but with more commands in between which are not relevant:
steps {
echo 'Running build with all ...
3
votes
2
answers
6k
views
Can't upgrade Jenkins on Debian11, the public key is not available: NO_PUBKEY FCEF32E745F2C3D5
I try to upgrade jenkins.
I use the new way to use gpg keys:
wget https://pkg.jenkins.io/debian-stable/jenkins.io.key
gpg --dearmor jenkins.io.key
mv jenkins.io.key.gpg /usr/share/keyrings/jenkins-...
3
votes
1
answer
2k
views
setting alias for sourcing a script, to run that script in jenkins with restricted permissions
I want to run source ./script_name instead of ./script_name. Can I create an alias for this ?
The Jenkins job will run the script as ./script_name and I can't edit the way it will run the script on ...
0
votes
0
answers
68
views
Is there any way to automatically merge commits from master another branch whenever there is any merge request for master?
Is there any way to automatically merge commits from master another branch whenever there is any merge request for master?
want to add to JenkinsFile as well.
0
votes
1
answer
431
views
Arrays declaration working on one distro do not work on another
I've a bash script that I run on Debian 11 and it worked just fine, I must move it to Ubuntu Server (probably 22.04) and now it stopped working.
My script below:
BRANCHES=("master" "...
0
votes
0
answers
174
views
struggling to install Jenkins with docker compose
I'm having an issue where a jenkins agent can't access Docker, and I'm just about ready to give up but I figured I'd try asking here first.
Along with the official documentation, I've also been using ...
6
votes
1
answer
8k
views
Manually install fontconfig, without root, for Java
While installing Jenkins on a server without root access, I get the following:
AWT is not properly configured on this server. Perhaps you need to
run your container with "-Djava.awt.headless=...
0
votes
1
answer
238
views
If I try browsing the fqdn of my jenkins server, my browser times out, but the domain resolves in the commandline, and I can browse the ip address
I have a jenkins server in aws. I can browse it (on my private network) by visiting http://{ip-of-my-jenkins-server}:8080, but if I try browsing http://{fqdn-of-my-jenkins-server}:8080, the request ...