Questions tagged [jenkins]

For questions about Jenkins, an open source automation server, and using Jenkins for topics such as building, testing, and deploying software, etc. For questions specifically about Jenkins Plugins use the jenkins-plugins tag.

Filter by
Sorted by
Tagged with
0
votes
2answers
183 views

Jenkins: how to run task every 30 days

Jenkins version is 2.235.5 (I should update it to next LTS version 2.249). I configured Jenkins to run a job periodically every 30 days: Build Triggers → Build periodically → Schedule: H 3 */30 * * ...
0
votes
1answer
35 views

Jenkins multi-agent build switching directories behind the scenes preventing AWS CodeDeploy plugin from zipping built files

I've narrowed my problem down to a very specific cause but am not sure how exactly how to fix it. A Jenkins server set up using Jenkins-configuration-as-code in a docker container runs a pipelineJob ...
0
votes
1answer
2k views

Ansible playbook error: “Connection timed out during banner exchange”

I am trying to connect to my bastion host and then tunnel that ssh connection to connect to a jenkins host but keep running into the connection timed out error. The error message in full is: fatal: [&...
2
votes
1answer
48 views

Pass information between Jenkins Job builds

Please excuse my non-fluent terminology.. There is a Jenkins server, master and a few slaves, there is a pipeline job.. let's call it playground I run the job once, I want to save some data somewhere. ...
0
votes
0answers
12 views

Maven looks up for artifact in libs-snapshot repo instead of the specified repo

I have an aggregator POM file and two Maven projects: sample-project-runner-parent - This is the Parent Artifact a) sample-project-runner-model - The first child module b) sample-project-runner - The ...
1
vote
1answer
337 views

Jenkins return “Error validating repository information. Credentials ok.” when validating repo url using Github App authentication

This is the error shown in UI Error validating repository information. Credentials ok. java.io.FileNotFoundException: https://api.github.com/repos/xxxxx/xxxxxxxx at org.kohsuke.github.extras....
0
votes
1answer
134 views

Ansible fails in Jenkins pipeline when run from docker

I'm trying to deploy a build via Jenkins pipeline using agent docker and Ansible playbook but it fails on Gathering Facts stage as shown below: TASK [Gathering Facts] **********************************...
1
vote
0answers
42 views

How does one build a build pipeline with versioned build artifacts?

I'm not sure quite how to phrase this question. I'd like to learn either by answer here or sharing a reference to read from: How do I build a pipeline with versioned build artifact? I've inherited an ...
0
votes
1answer
24 views

Updating a TFS repo with Jenkins

I want to checkout a TFS repo, make some changes to a file and send the changeset to TFS. What are some ways to accomplish this with Jenkins?
1
vote
1answer
451 views

Jenkins Credentials Manager + Active Choices

I want to access Jenkins Credentials to authenticate with Git before the pipeline script - to fill Active Choices parameter. In the pipeline I simply do it with withCredentials. But during pre-...
1
vote
1answer
101 views

How to increase jenkins logger size?

I use Jenkins log recorders as described in docs: https://www.jenkins.io/doc/book/system-administration/viewing-logs/ It works, but log is only about 255 lines long, which is too short for my ...
1
vote
0answers
18 views

How can I configure Jenkins pull request builder to run tests on Github dependabot PRs

Our Github project repository is configured to receive security PRs from dependabot, and we get them periodically. We are using Jenkins with Build Triggers so that when a user comments /test in a PR ...
0
votes
0answers
18 views

What is the best way to integrate a open source secrets detector into a deployment pipeline and Github?

There are a number of open source secrets detectors that run via CLI. (Gitrob, trufflehog) However, is there a good way to integrate these that they run on a per PR basis? The use case here would be ...
0
votes
0answers
28 views

Jenkins - Run Email Action before Post Build Task

In my Jenkins project, I take a snapshot of the SQL server using a post build script/task: But that part takes a while and is irrelevant to the QA people who are just interested in installing the ...
1
vote
0answers
13 views

Allow specific AWS permissions(Lambda, S3) / roles to specific Jenkins Jobs within same AWS account

We have one AWS account in which an Ec2 instance is running where Jenkins is installed, and we have attached an IAM role to it, with s3 access permission. We have Jenkins jobs which needed aws ...
1
vote
1answer
50 views

How to handle services when the developers provide incorrectly in k8s

I provided the script to provision a new feature environment inside k8s it will create all the configs required, namespaces, resources and whatever... in my script, I described this param: parameters {...
0
votes
2answers
159 views

trigger jenkins jobs only when a specific branch is updated

I require a setup in jenkins, which enables me to trigger a jenkins job based on a push event to a specific branch in github. tried so many methods neither worked.
0
votes
1answer
235 views

convert declarative pipeline to scripted pipeline

I already used the following declarative script as a part of my cleanup script, now I should convert it to the scripted pipeline, how I can convert the post to the scripted pipeline?
5
votes
1answer
2k views

What is the difference between Jenkin's `Replay` and `Rebuild` options?

If you want to re-run a Jenkins job, you can click the Rebuild button which sometimes appears as the Replay button. What is the difference Rebuilding a job versus Replaying it? Why is it that some ...
0
votes
2answers
55 views

Jenkins: Re-use repository with reference option and do changes on it

I would like to setup a Jenkins cluster where the slaves are building an Android ROM with some parameters like branch (e.g. lineage-16.0) and some optional patches. The whole repository will consume ...
0
votes
1answer
43 views

git reflog is showing plain text password used

We are using Jenkins Freestyle Project to push the changes on the remote server. We are executing shell script on remote host using ssh for it. To pull the changes on remote host, we are using origin ...
0
votes
1answer
629 views

Curl Error in HTTP2 framing layer when trying to install Jenkins plugin

I am trying to create a custom Jenkins docker image. For that I need to install certain plugins in Jenkins. I am doing so by adding the below lines to the Dockerfile COPY plugins.txt /usr/share/...
1
vote
1answer
106 views

How do I use Jenkins to maintain versioning on a Python project?

An independent Jenkins server monitors my develop branch in Team Foundation Server's Git repository and builds a new package when it's updated. The problem I'm having is that it uses the same version, ...
0
votes
1answer
100 views

Jenkins Helm Chart - kubernetes-plugin pulling image from a private gcr

I am failing to pull images from a private gcr repo through helm jenkins on a private k8s repo. I am getting: rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have ...
0
votes
1answer
228 views

What is the best approach to deploying to multiple servers using Jenkins?

Trying to figure out the best approach for deploying to multiple servers using Jenkins Blue Ocean pipeline. We will have six servers in development, six in QA, six in Staging, and six in production. ...
1
vote
1answer
547 views

Jenkins - restrict which nodes can be selected by user when creating jobs

I have a situation where I have a Jenkins installation that is used by multiple teams. Each team gets their own Jenkins node, which has access to certain parts of the organization that the team is ...
1
vote
0answers
16 views

is it possible to see jenkins jdk install progress

I am config jdk 11 in jenknins 2.235.3 running in kubernetes v1.16 cluster, I just want to know if it has a way to see the jdk install progress? so I could know if the config is correct or other ...
0
votes
1answer
527 views

Jenkins Not pulling the latest commit into master or slave

I have a Jenkins pipeline where after every build I change a file(increase build version in a property file) and checkin back to the git repository. After a build, I commit some differnt code change ...
1
vote
1answer
23 views

Cannot understand jenkins deployment error

I am new to jenkins, and i am trying to make a deployment into a remote serve, but i am getting the following error: Current dependency:com.vmd positionWatchLoader latest.integration :: loading ...
1
vote
1answer
31 views

Need help getting documentation of Jenkins

I need a little help over here: In every site I seek info to get started using Jenkins (i.e.: devopscube) they say is very easy to understand, and theoretically is really simple once you have look ...
1
vote
1answer
372 views

SSH connection to jenkins server

I have a absh script which connects and exexutes programs from my local to remote server and now this should be executed from jenkins build so for this jenkins is taking continous changes from git for ...
2
votes
1answer
16 views

Control GKE CICD from a Jenkins in a lab with private network?

For a test purpose I need to use my locally provisioned Jenkins with Vagrant in order to connect to GKE and use pods to build. Is that possible, because from what I read K8s will need access to ...
0
votes
2answers
367 views

Jenkins - docker login doesn't seem to persist: docker pull won't work but docker-compose can pull without problems

I am setting up a new Jenkins as our old one is based on a deprecated base image. Dockerfile is: FROM jenkins/jenkins:lts-centos7 USER root RUN yum -y install docker \ && yum clean all ...
7
votes
1answer
109 views

How to have jenkins add a review to a pull request

I have a Jenkins instance, with credentials for a "robot" github account, which we use to interact with the GitHub API as a team. Typically, jobs are defined as declarative pipelines. I am ...
1
vote
1answer
69 views

What's in THIS environment?

We work on multiple java web projects going on at the same time and those are all being tested on several different QA environments. I'd like to show on our support portal what projects are in what ...
1
vote
1answer
128 views

How to revert jenkins Safe restart?

Jenkins was having issues and I safe rebooted it in order to solve the issue but the issue got solved the reboot. Some jobs have ours to run so is there way to cancel the reboot?
3
votes
2answers
462 views

yaml files in jenkins pipeline

Just started out working on jenkins, among other things I'm trying to understand the role of yaml in pipelines. I understand that pipelines or declarative pipeline (do other type of pipelines exist in ...
1
vote
2answers
361 views

How to determine whether the Jenkins build was started by a user or the scheduler?

I have a Jenkins job which does some unit-testing for some code. It can be started in two possible ways: By the scheduler - it polls the Perforce server, and starts the job when it detects a code ...
2
votes
1answer
164 views

Jenkins cron works only for the 1st line

I'm trying to use Jenkins to run a small monitoring script every minute on two separate ECS clusters. In the text box that opens when you enable "Build periodically with parameters" I wrote: ...
1
vote
1answer
181 views

Unable to get value of password parameter into another parameter

In Jenkins pipeline parameter say Branches of type Active Choice Reactive Parameter, I've to auto-populate branch names hence I've following command, which I can execute in parameter's Groovy script - ...
1
vote
3answers
632 views

How do I load a Jenkins Shared Library in a Jenkins Job DSL seed?

I have a seed job using the plugin Jenkins Job DSL. I also have a shared library. I have tried using the @Library annotation to load the script and the library method. It cannot find the annotation ...
1
vote
1answer
1k views

How to determine if a Jenkins build is triggered by a Pull Request merged to Master

I think i've scoured every post on this topic but haven't found my specific scenario. (Maybe that means I'm building the wrong thing OR i've built something unique and new? The former is far more ...
1
vote
1answer
1k views

How to get logged in username of Jenkins in parameter's Groovy script?

In Jenkins parameter, I'm writing Groovy script and in that script I need to pass Jenkins logged in username NOT user. User and username, could be different Ex - User, that is displayed left to 'log ...
2
votes
0answers
362 views

Passing parameters of extendedChoice type to Jenkins Pipeline via jenkins-cli.jar

I have the following declarative pipeline. It defines checkbox multi-choice parameter: pipeline { agent any options { ansiColor('xterm') } parameters { ...
2
votes
1answer
56 views

Docker calls to detect app crashing inside it

Is there a way to know if an app has crashed inside docker using maybe bash script or API call from host container, am implementing CI/CD using Jenkins and will be deploying the built app via ssh to ...
1
vote
0answers
27 views

How I can trigger CRON with parameters without using following plugin “parameterized-scheduler-plugin”

Actually, I do not have Jenkins admin right and instead of requesting admin to install "parameterized-scheduler-plugin", are there any other plugin-less alternatives.
2
votes
1answer
163 views

simulate post step for dynamically generated Jenkins pipeline stages

The following simplified Jenkinsfile dynamically generates sequentially executed stages; however, I cannot create a post step for these dynamically stages, like so: pipeline { agent none ...
1
vote
1answer
53 views

How do I setup ssh from jenkinsci/blueocean docker to remote?

I am running jenkinsci/blueocean docker locally as per the instructions of running jenkins using a docker on jenkins.io. Everything seems to be working correctly but when I docker exec into the docker,...
2
votes
1answer
64 views

Jenkins Docker Behind Reverse Proxy Adds “:80” to the URL

The Jenkins container redirects to URL:80, which is causing an error. When I remove the :80, everything is working as it should. I have tried the proxy with a simple web app and there were no issues. ...
4
votes
1answer
57 views

How can I unify my distributed build environments using Jenkins and Docker?

I have recently taken over the CI management for a medium-sized team of developers. Currently, we have one Jenkins server instance as well as six other instances of Jenkins agents to build upon. We ...

1
2
3 4 5
12