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
0answers
10 views

Jenkins Docker - Make changes to gitconfig

I have a self-hosted Gitea organization, and the way to access the repos requires some "secret" extraheader in .gitconfig. (2FA is also enabled) When I look at Jenkins "Configure System&...
0
votes
0answers
3 views

Why maven build slows in docker container when local maven repo mapped to container's /usr/share/?

We run Jenkins pipeline on docker container. During the run, we mount host's .m2 to container's with - -v $HOME/.m2:/usr/share/.m2 When host's .m2 mounted into container's /usr/share/.m2 maven build ...
1
vote
0answers
12 views

Parallel execution of same job with different configuration- pipeline jenkinsfile script path is updated incorrect

I have a jenkins job A and i have 5 tests (each triggering job A with updation of different jenkinsfile script path as Before Each test) executing in parallel Test1 with pipeline-jenkinfile-1 Test2 ...
0
votes
1answer
13 views

Jenkins and Kubernetes CLI plugin and GKE

I'm trying to use Jenkins Kubernetes CLI plugin from https://plugins.jenkins.io/kubernetes-cli/ to let deploy artifacts from Jenkins to GKE cluster. Expected Behavior Get cluster info on kubectl ...
0
votes
1answer
14 views

Two identical Azure deployments; one always throws 404 - how to find out what the difference is?

I am deploying a C# ASP.NET Core web service to Azure using Pulumi. I can deploy it in 3 ways: Run it locally from Visual Studio, i.e., not using Azure at all. Deploy it to Azure from my local ...
-1
votes
0answers
18 views

New to DevOps looking for resources [closed]

I'm looking for any resources for a newb in DevOps. I've been spending a fair amount of time in r/Devops but I'd appreciate any resources that you would recommend. Specifically, I want to better ...
0
votes
0answers
24 views

Jenkinsfile pipeline ecr docker tag parameter

I've been trying to get a solution for a docker image tag drop down parameter in a Jenkinsfile for a deploy pipeline. So basically, pipeline as code, with choose your own image tag to deploy this ...
0
votes
1answer
28 views

Add stages to Jenkins declarative pipeline through shared library

Is there a way to write a stage in a Jenkins shared library so that it can be added to declarative pipelines? Background For many projects, I need to run tests on multiple different servers. My ...
1
vote
1answer
22 views

Jenkins: store build information for later reference

Is there a way to store custom information, for example my staging environment ID. I need this information for cleanup purposes later after the staging environment is no longer needed. Ideally, I want ...
0
votes
0answers
33 views

How to configure Bitbucket Build Status Notifier Jenkins plugin to connect to BitBucket Cloud for Jenkins Pipeline projects

I would like to know how to configure Bitbucket Build Status Notifier Jenkins plugin to connect to BitBucket Cloud for Pipeline projects. Basic instructions are here, on a plugin homepage: https://...
1
vote
1answer
32 views

Is there a way to combine helm with some other tool for k8s configuration management without conflicts?

Currently I have a k8s project with multiple services which are managed by a helm chart. Said helm chart is installed on my local machine and I want to keep it this way if it's possible. But now I ...
1
vote
1answer
29 views

How do i print the list of jobs per plugin in Jenkins

I'm trying to list the jenkins jobs per plugin is being utilized. I see there's a plugin in jenkins, https://github.com/jenkinsci/plugin-usage-plugin, which displays the plugins usage in the Jenkins ...
1
vote
1answer
28 views

Jenkins: Access job/plugin configuration values inside pipeline

I am trying the access the values set on a job's configuration page from within my pipeline. These values are not made available as params, nor are they injected as envvars. Setup Jenkins, v2.263.1 ...
1
vote
1answer
71 views

Skip stages in Jenkins pipeline

I am using a scripted pipeline where I am required to skip some stages conditionally.Is there a way to show skipped stages on Jenkins UI other than importing org.jenkinsci.plugins.pipeline....
2
votes
0answers
24 views

How to run a container from within another container while also mounting a volume from the first container?

I'm running a build in Jenkins which is running inside Kubernetes. When the job starts, a container starts in the cluster and the build runs inside it. A step in the build requires building an RPM ...
0
votes
0answers
45 views

Jenkins agent fails to connect to docker socket in latest helm chart

Preface I have been using older version of Jenkins on Kubernetes with the Kubernetes plug spinning up Jenkins Agents deployed by the official Helm charts. I've had no issues with them. In fact I ...
2
votes
2answers
52 views

How can I make artifacts available to the QA team with a user-friendly UI?

Currently developers push to master, jenkins picks that up, builds it, and then I go to artifacts, download the APK files and upload them in a Microsoft teams group so that the QA team can download ...
0
votes
1answer
127 views

Jenkins declarative pipeline Warning: JENKINS-41339 probably bogus PATH

I am struggling with this issue inside my declarative pipeline. I am trying to use python's docker image as my agent and run some scripts and I am receiving warning: Warning: JENKINS-41339 probably ...
1
vote
1answer
21 views

How to add a static slave to Jenkins running in Kubernetes?

I've installed a Kubernetes cluster and deployed Jenkins in it which dynamically starts slave machines using Kubernetes plugin for Jenkins. Some builds require a specific build machine with GNU make ...
1
vote
1answer
27 views

how to update .env file in production while Jenkins deployment

how to update the .env file in production while Jenkins deployment? we have not committed the .env file in git for security reasons.
0
votes
0answers
20 views

How to build through Jenkins on merge of two branches, if there is CI Skip enabled and both branches have ci skip commit message?

I am trying to implement jenkins ci skip build. I tried SCM Skip plugin https://plugins.jenkins.io/scmskip/ It worked for me , whenever there was a regex matching .[ci skip].. Unfortunately, This ...
0
votes
1answer
35 views

Jenkins Slaves cannot connect to the Master Jenkins

I switched the Jenkins to using https on port 8080 . After a restart of the Jenkins,the slaves cannot reconnect. I changed only Jenkins location from Configure System -> Jenkins Location -> ...
0
votes
2answers
36 views

Jenkins connect to Windows 10 agent

I have a Jenkins master on a Linux machine and I would like it to be able to connect to a Windows 10 agent, how do I do that? I can't find much in the official documentation about agents in general, ...
0
votes
1answer
14 views

jenkins build overview page not showing stages in webui

I'm using the image: jenkinsci/blueocean from Dockerhub The build overview page isn't showing the stages of a build. i.e. the square boxes that represent the stages are not appearing. Am I missing a ...
0
votes
0answers
25 views

Permissions on jenkins server

I have a couple of users on jenkins server - ec2-user and jenkins I ssh on the jenkins box as ec2-user For some reasons, we have dependencies on jenkins accessing a file in /home/ec2-user/.local/lib/...
1
vote
0answers
84 views

How to send/get parsed console output file in jenkins?

I have used log parser plug-in to find out the errors and warning and able to see it into console log(parsed) section over Jenkins. Now I have to send those parsed log file to recipient user. To send ...
1
vote
1answer
58 views

How to add label to Pull Request via Github API?

According to GitHub API user can add label to an issue using this POST request. I tried using this request but with PR number instead to automatically set label on PR. Here is the function I wrote: ...
0
votes
0answers
54 views

How to use jenkins build parameter in web ui?

I have a ready jenkins build parameters , I want to use/link the same in webpage UI (that to be created). Need help on - what are various possible way to achieve this ? any document , link would be ...
0
votes
1answer
59 views

How can I check if there is a new build the same jenkins pipeline

I have a github multibranch pipeline, in declarative format. It is configured to trigger on pushes to pull request branches (ie, branches which are included in pull requests to a target branch, say ...
0
votes
0answers
13 views

Setting up PR Build in Jenkins when raised from stash

Setting up a PR request to have a build run in Jenkins. Our source repository is Stash. Essentially, the PR will be from any branch (each developer will create their own branches) to develop I have ...
0
votes
0answers
36 views

Jenkins Declarative Pipeline not running

I have just upgraded the jenkins version and wrote my first Jenkins declarative plugin. Following is the pipeline definition pipeline { agent any stages{ stage('Welcome'){ ...
0
votes
0answers
19 views

How can I find out the latest stable Jenkins version via API call?

I'm trying to write a script that creates a Docker image from a Jenkins image, that is, the first line of my Dockerfile is... FROM jenkins/jenkins:2.249.3 However I wanna be smart and write a script ...
0
votes
0answers
9 views

Need advice to setting up a Jenkins blue/green infrastructure, from a high level?

I'm trying to use Terraform to setup a blue/green Jenkins deployment. The idea is to setup a green infrastructure for testing, and when that is good, promote it as the blue node to be used for ...
2
votes
1answer
236 views

branch specific jenkins pipeline trigger

I am trying to trigger a jenkins pipeline job only when a pull request has been approved & merged to a specific github branch in our CI/CD implementation. currently whenever i merge a PR to ...
0
votes
0answers
63 views

getting error in Jenkinsfile - command not found

I'm trying to setup my company's first CI/CD pipeline, to build & deploy docker containers in gke, it has been a a great learning curve so far, however I'm stuck with error in Jenkinsfile /var/lib/...
0
votes
2answers
101 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
25 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
1k 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
44 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
11 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
0answers
240 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
87 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
39 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
252 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
74 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
17 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
20 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
2 3 4 5
11