Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

Filter by
Sorted by
Tagged with
3 votes
0 answers
1k 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 ...
Martin Muzatko's user avatar
0 votes
1 answer
99 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 ...
the_mackster's user avatar
0 votes
1 answer
2k 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 ...
khyathi's user avatar
1 vote
1 answer
593 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 ...
iveqy's user avatar
  • 111
0 votes
0 answers
404 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 ...
Charlie Piks's user avatar
-1 votes
2 answers
2k 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 ...
Shamim's user avatar
  • 101
0 votes
1 answer
1k 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 ...
Sijo M Cyril's user avatar
1 vote
1 answer
1k 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 ...
genius_monkey's user avatar
0 votes
1 answer
93 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 ...
Gaurav Bhaskar's user avatar
0 votes
0 answers
3k 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 SSH ...
user avatar
4 votes
1 answer
10k 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 ...
Emma Kelly's user avatar
0 votes
1 answer
578 views

On Jenkins, How can I let anonymous users to see the job status, but not the console output

I tried the Matrix Authorization Strategy Plugin, and it works but grants already too much. I want anonymous users to only see the status, not the console output for each build.
Andre Rodier's user avatar
0 votes
0 answers
753 views

Port becomes unreachable even the service is running

I am running Jenkins on default 8080. The service is monitored on port. I occasionally get an alert of "Unreachable port 8080". When ssh'd to server, "netstat" shows port is use and "ps -aux" shows ...
Apoorv Singh's user avatar
0 votes
0 answers
487 views

Jenkins failing to load in linux Centos

Configured Jenkins, tried to change the port to: 5555 as 8080 is used by tomcat apache. Edited: vim /etc/sysconfig/jenkins and updated JENKINS_LISTEN_ADDRESS="0.0.0.0" AND JENKINS_ARGS="0.0.0.0" ...
Hansiemithun's user avatar
0 votes
0 answers
91 views

Apache Syncope Depends on Maven? What is maven for in this context?

fwiw: I did not come into this looking for another CI/CD tool. I came into this looking for an IAM tool (and I found Syncope). When Syncope install documentation called for Maven that's when the ...
Jake's user avatar
  • 1
1 vote
0 answers
666 views

Permission not granted when delete file

I am trying to run clean jenkins workspace with rm -rf /var/lib/jenkins/workspace/* but I get permission denied for /var/lib/jenkins/workspace/* I see jenkins jenkins when I execute ll to check ...
J.dock's user avatar
  • 11
1 vote
1 answer
4k views

Jenkins slave unable to clone from Gitlab

I have an autoscaling Jenkins cluster on AWS, which spawns & runs agents via JNLP. Both Master & Slaves run on Ubuntu. I don't quite understand where Jenkins actually stores the SSH keys for ...
Mcar49's user avatar
  • 113
0 votes
1 answer
10k views

Pass variable in remote SSH-command in Jenkins-job

i have a little test job: touch 22.txt echo "wwe" > 22.txt test=$(echo ${BUILD_NUMBER}) echo $test ssh jenkins@srv1 "mkdir D:\myfolder\$test" ssh jenkins@srv1 "dir D:\myfolder\" BUILD_NUMBER ...
Piduna's user avatar
  • 571
1 vote
0 answers
925 views

Jenkins Failed To Start

Jenkins failed to start after disk space going out. After deleting data start the Jenkins but it start for few seconds and down again. jenkins.service - Jenkins Daemon Loaded: loaded (/etc/...
vish's user avatar
  • 156
0 votes
1 answer
949 views

Jenkins builds not marked unstable/failed if PHPUnit fails

So, the title pretty much gives it away. We're using Jenkins 2 with PHPUnit 6.5.12 and a couple of days before, everything worked fine. Now, every build we do and has failures (or worse, errors) in ...
Philip Weisel's user avatar
1 vote
2 answers
214 views

Jenkins Build on Workspace Change

Due to security concerns we have two Jenkins instances, One that lives in a secure area and only deploys jars that have been built (cannot connect to GIT). The other lives outside the really secure ...
flareback's user avatar
  • 111
0 votes
1 answer
186 views

Deploy containerize project using Jenkins and Ansible

I have project running using several docker containers. Now I want to automate deployment using Jenkins (push triggers). I have three scenarios but I like none of them. here are these three different ...
O. Shekriladze's user avatar
1 vote
2 answers
2k views

Jenkins behind proxy - illegal character in proxy url

I'm running Jenkins behind corporate proxy. My proxy password contains special characters something like 'P@ssw0rd'. Getting below exception while building pipeline Started by user unknown or ...
Naveen's user avatar
  • 61
1 vote
1 answer
7k views

How to configure Jenkins Job to use Bitbucket Repository Access Key when cloning repo?

In one of my bitbucket repositories on a Bitbucket server instance, I've configured an Access Key and would like to use this access key within a Jenkins Job to clone said repository. However, there ...
Eric's user avatar
  • 113
1 vote
0 answers
67 views

How to trigger build on multiple servers

I have written a pipeline script using stages, using each stage to deploy code to each server from my nexus. If I grow to 100 servers, I can not write such a number of stages. So need to minimize to ...
sneha's user avatar
  • 11
1 vote
0 answers
2k views

Jenkins: Docker plugin, "All nodes of label [...] are offline"

I got a Photon OS server running, where I'd like to create and use containers as jenkins nodes (Docker plugin). During the job I get "All nodes of label [...] are offline" although multiple containers ...
smelm's user avatar
  • 111
0 votes
2 answers
2k views

Jenkins behind corporate proxy

I have configured proxy settings for installing plugins in Jenkins. Please find the below image. But when i try to install plugins getting proxy error. Installing Plugins/Upgrades Preparation ...
Arun's user avatar
  • 101
1 vote
0 answers
238 views

Selenium WebDriverException: Message: address not available, when running Django test on jenkins server

I have running docker an AWS EC2 instance. Using docker-compose, I have jenkins running in one container. I have a jenkins pipeline which checks out my repo ( which is a Djano application, with a ...
ched's user avatar
  • 11
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 --...
user3360140's user avatar
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 ...
gone's user avatar
  • 209
1 vote
0 answers
47 views

Jenkins, http management from docker

I have problems with jenkins-cli and I think I need help for debugging. My Jenkins installation runs from Docker, and I want to interact with it from within a different docker instance (so there's a ...
banyek's user avatar
  • 399
1 vote
0 answers
738 views

Why are psql commands in my script suddenly being killed by jenkins / hudson?

I have an existing jenkins job that kicks off a shell script to copy my prod environment into qa. We added a lot of data to prod (gzip dump went from 2gig to 15gig) and all of the sudden my jenkins ...
Ted's user avatar
  • 11
0 votes
0 answers
1k views

No new Jenkins logs being written

I just noticed my Jenkins last wrote jenkins.log in /var/log/jenkins for more than 6 months ago. This is from my Jenkins config: # log location. this may be a syslog facility.priority JENKINS_LOG=/...
Biskut's user avatar
  • 1
3 votes
1 answer
2k views

Can Jenkins utilize the user's Kerberos ticket?

I'm setting up a new Jenkins server. It will authenticate users against the corporate AD. Most of the tasks we have in mind require logging-in to other hosts (via ssh). Can Jenkins be configured to, ...
Mikhail T.'s user avatar
  • 2,377
1 vote
0 answers
82 views

EC2 Plugin using Spot Instances fails - Creates zombies, Instable

Jenkins ver. 2.150.3 Ubuntu 18.04 Host Amazon EC2 plugin 1.42 Hey. The plugin works perfectly without Spot instances! I've tried to use the Amazon EC2 plugin with Spot Instances ( m5d.12xlarge ). ...
Şerban Nicuşor's user avatar
3 votes
2 answers
12k views

Jenkins global AWS credentials not working via `withAWS` step

I have a Jenkins v2.62 instance with the pipeline plugin installed and successfully usable. I have AWS credentials that are tested and working: Now my pipeline job has something like this: node("...
scorpiodawg's user avatar
2 votes
1 answer
4k views

Is there a way to get the status of the last 3 builds of a jenkins job?

Am trying to monitor jenkins builds for a deployment job but i need to get only the notifications only when the build fails 3 times in row. Any ideas how to implement this ?
melfors's user avatar
  • 21
1 vote
2 answers
8k views

Jenkins says my reverse proxy setup is broken: but there is no proxy

This errormessage is preventing me from updating Jenkins Jenkins says my reverse proxy setup is broken and: Failed to resolve host name updates.jenkins.io. Perhaps you need to configure ...
Cutton Eye's user avatar
3 votes
0 answers
1k views

Use an ECR image as an agent in Jenkins

What I'd like to do is use an ECR image as an agent in Jenkins when using declarative pipeline Current top of pipeline script looks like so: pipeline { agent { docker { image ...
Keith Baker's user avatar
0 votes
1 answer
826 views

How to troubleshoot "Failed to fetch slave info from Jenkins"

I have a Jenkins server and a Jenkins slave and the slave won't connect to the server anymore. The slave reports: SEVERE: Failed to fetch slave info from Jenkins, HTTP response code: 500 The only ...
Wyck's user avatar
  • 130
2 votes
1 answer
4k views

How to publish a Confluence(Cloud) Page in Jenkins

I'd like to publish a web page to Confluence(Cloud) using Jenkins pipeline. I used Jenkins Confluence Plugin, it didn't work. When I set my confluence page url(https://yourDomain.atlassian.net/wiki/) ...
Yang Wei's user avatar
3 votes
1 answer
4k views

ldapsearch doesn't work wih ldap.google.com via stunnel

Can't get it working. I have to use stunnel to be able integrate Jenkins with Google LDAP service. It works fine without stunnel $ LDAPTLS_CERT=/etc/stunnel/gldap.crt LDAPTLS_KEY=/etc/stunnel/gldap....
ALex_hha's user avatar
  • 7,313
2 votes
0 answers
2k views

shell request failed on channel 0 putty

I'm trying to pull from bitbucket through Jenkins in our AWS windows server. Jenkins is using the System User so I need to accept the host key in order for it to work because Jenkins doesn't provide ...
bubbles2189's user avatar
19 votes
5 answers
77k 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 ...
ColOfAbRiX's user avatar
  • 1,090
0 votes
0 answers
630 views

Jenkins: Some plugin or setting corrupts PATH environment variable

We have Jenkins Master 2.121.2 with 3 Jenkins Slave nodes. Recently we have encountered the following error: ssh: not found in $PATH Failed to connect to repository : Command "git ls-remote -h ssh://...
Rafis Ganeev's user avatar
0 votes
2 answers
2k views

Issue running Jenkins Pipeline Steps using Credentials plugin

I have a basic Pipeline that copies a directory to a remote directory. If i have the username and password in plain text it works fine, but when I try to use withCredentials I get authentication ...
CEamonn's user avatar
  • 101
3 votes
1 answer
24k views

Jenkins Pipeline Syntax: Quoting Pains When Using Multiple Quote Blocks

I have kind of a weird setup that I need to run a command as a docker container in a sh block in a Jenkinsfile. Issue that I'm facing is specifically around the awk command used to trim the output. ...
emmdee's user avatar
  • 2,277
1 vote
1 answer
2k views

Jenkins Pipeline: Using Env Var in another Env Var declaration

I would like to make my long "ssh" command reusable as a simple variable throughout my pipeline. To do this, it would be nice to declare my hostname in a var, then use that var in another var ...
emmdee's user avatar
  • 2,277
0 votes
0 answers
630 views

How should I know what classpath to set on a Gradle build in Jenkins?

I mostly do devops work. I'm setting up Jenkins for a team. They have a Kotlin project that they are buidling on their local machines with Gradle. I have never worked with Kotlin or Gradle, but I have ...
JeffGallant's user avatar
0 votes
1 answer
538 views

How to trigger a reconnect for Jenkins EC2-Plugin?

Attempting to resolve an issue with an upstream AMI having a low max-open ulimit. I'm able to fill in the limits files, and if I manually disconnect/reconnect the slave, the new limit applies. I can ...
rrehbein's user avatar
  • 498

1 2 3
4
5
13