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
1
vote
0answers
25 views

Blue ocean logging my step commands

using a minimal jenkinsfile as an example node("master") { stage("Test") { sh( label: "THIS SHOULD DISPLAY", script: "set -e; ...
0
votes
0answers
38 views

Get Jenkins build numbers from another job into active choices parameter

Here's what I'm trying: I have a build job and a deployment job. I want to trigger deployments using the build job's build numbers. I'm having trouble incorporating this into a Jenkins pipeline. So ...
0
votes
1answer
27 views

Jenkins: Dynamically git clone only the files required for a particular job from a monorepo

We have a huge ~20GB monorepo. For a particular Jenkins job, we do not need to clone the entire repo but only need a few sub-directories. The solution for this is of course git sparse checkout. ...
-1
votes
0answers
8 views

How to get ConsoleFull Output,changeLog of upstream job along with downstream jobs console full output and changeLog in jenkins pipeline jobs!

Lets say we have Jobs A , B , C ,D and E. Job A triggers Job B ; Job B triggers Job C; Job C triggers Job D;, Job D triggers Job E; When one of the child job fails for example: Job c fails then email ...
0
votes
0answers
14 views

Can a Jenkins Pipeline project be configured with a config-driven pipeline?

I've added the Config-Driven Pipeline Jenkins plugin, and -- as advertised -- it has enabled a by Config-Driven Pipeline option to the Build Configuration section of Multibranch Pipeline projects. Is ...
2
votes
2answers
40 views

How many executors can I have for a Jenkins Windows build node?

I have set up Windows build nodes in awhile, but I do remember when I did I was only able to set 1 executor per node. Is this still true?
0
votes
0answers
21 views

How to execute npm commands inside a Docker container on a Kubernetes pod from a Jenkins pipeline?

I am trying to run sh commands from a Jenkins pipeline inside a Docker container, which is located inside a Kubernetes pod. I am using the Kubernetes plugin and after some research and experimenting, ...
2
votes
1answer
21 views

What are ways to structure a webhook-triggered job that triggers a human-triggerable job?

I hope it's okay to ask for recommendations here. I'm very new to devops, and am trying to get into the headspace of involved technologies and workflows. I've created a webhook in my Bitbucket project ...
0
votes
0answers
16 views

Why is parameter not propagated to post-build parameterized build?

I'm trying to apply the guidance I recently read at how to trigger parameterized builds from a different build in Jenkins and https://plugins.jenkins.io/parameterized-trigger/ - but this doesn't seem ...
0
votes
1answer
132 views

Why does Jenkins Pipeline script returnStatus value not match status examined in shell?

This is my little newbie Groovy script, trying to cobble together a very beginner understanding of Jenkins Pipelines: node { stage("hello") { def var = "val" echo "${var}&...
0
votes
1answer
14 views

Where is Jenkins Pipeline script stored and can I control it?

Several tutorials I'm referencing to learn about Jenkins Pipeline scripting guide one to create Jenkins Pipeline jobs as follows: Click New Item in the left pane. Click Pipeline and enter an item ...
0
votes
1answer
19 views

Why are variables with fixed values not visible in Jenkins Pipeline stage?

I'm new to DevOps, and am cobbling together a beginner understanding from lots of reading, YouTube videos, and online examples. I've had initial success adapting this helpful tutorial. I.e. in my ...
2
votes
0answers
32 views

Is there an all-in-one control center software that can be used to manage build and test execution and to visualize test results?

If there are no constraints with regards to other components used in the system at all, do you know a software that can be used as a sort of "cockpit" / control center to visualize test ...
0
votes
1answer
38 views

When do I run applications on a server in a pod and when to run them directly on the base operating system?

I am trying to get started in the DevOps Field by setting up a small server currently with Virtualbox, later on for a small team. For my basic setup I plan to use gitea as self-hosted git and Jenkins ...
0
votes
1answer
20 views

java.lang.UnsupportedOperationException: no known implementation of class jenkins.tasks.SimpleBuildWrapper is named BuildUser in jenkins

I preparing script in Jenkins as below where I getting error while build job. This job is send email to user for input for next step. [Pipeline] End of Pipeline java.lang....
0
votes
0answers
18 views

Folder problem when creating compiled

i am working with Jenkins to automate my deliveries on a continuous basis. Previously I had a lot of jobs in the dashboard so I decided to organize it in folders, for example: Folder: Development\...
2
votes
0answers
105 views

Jenkins Unable to Match Two Identical Strings

I have a config file that's in YAML format, which includes this relevant portion: project: protectedBranches: - master - develop - feature/something In my Jenkinsfile, the YAML file is ...
0
votes
1answer
48 views

Continuous Deployment with jenkins

I am a beginner in DevOps. I created a continuous integration cycle using jenkins(docker image) and bitbucket. I used a simple spring boot hello-world project and after CI i got an executable Jar. I ...
0
votes
0answers
21 views

Jenkins pipeline for restricted repo

I have an SVN repo that only a subset of user's are allowed to access. I would like to have Jenkins checkout the repo and build it according the groovy script in the repo. However, when setting this ...
0
votes
2answers
28 views

Limit throughput between Jenkins and Jenkins Agent

I am trying to find a way to throttle the thruput on the request of our Network folks. They want me to not exceed 5.5Mb/sec. Is there a way to do this within Jenkins. Looking at the config files under ...
0
votes
0answers
22 views

Parametrized remote trigger with multiline string Jenkins

I have a Jenkins job which triggers a remote job. Both the jobs have a multiline string as paramter. I am not able to pass the parameter to the remote job. Only the first line of my input string is ...
0
votes
1answer
50 views

I can't find the jenkins password to unlock the website

I'm trying to install Jenkins, but, in one part I need to unlock Jenkins, and I didn't find the file with the password, it doesn't exist on my pc. I tried to run this command on my terminal (Windows): ...
0
votes
1answer
32 views

Jenkins and Kubernetes Design Involving GitHub

I am new to DevOps and am currently designing a CI/CD pipeline that involves integrating GitHub webhooks with Jenkins in a Kubernetes environment, and I would like to see whether this is feasible or ...
0
votes
1answer
29 views

How to create pipeline with jenkins? [closed]

I followed this tutorial and when i get to 29:32 the option "Build Pipeline View" is not displayed in the list i only get list view and my view.What can be the cause of this ? ( i followed ...
0
votes
0answers
27 views

Docker | Multiple ways to build Docker Image

I'm just getting into DevOps, trying to learn as I go. One thing I don't understand is this. When I was trying to automate my docker image build, I noticed that there are multiple ways to accomplish ...
0
votes
1answer
32 views

Jenkinsfile credential as paramter unable to use it

I am trying to use the credentials parameter for a git clone. But i am getting the error that the variables are not found Param definition credentials (credentialType: 'Username with password', ...
0
votes
0answers
18 views

Use Jenkins without any slaves created (SSH on target machines to launch commands)

What do you think about having one master and no slave configured on Jenkins but having an SSH connection to remote machines initialized in the jobs directly that allow the execution of the build and ...
0
votes
0answers
19 views

Docker workflow plugin returns empty error message when starting a container

I am working with a number of Raspberry Pis to which some microcontroller-equipped hardware is connected. This hardware is being tested remotely and automated (using Jenkins with the Docker Pipeline ...
0
votes
1answer
42 views

Jenkinsfile update using version control

I've a Jenkinsfile in the master branch of the repository with following code pipeline { agent any stages { stage('A') { steps { sh 'echo "Step A"'...
0
votes
0answers
31 views

Can you limit the scope of the “post” block in Jenkins to the stage result status?

I am trying to execute a script based on the result of a particular stage in a Jenkins declarative pipeline, but the post block seems to be dependent on the status of the entire pipeline. Any way of ...
1
vote
1answer
122 views

Jenkins - Active Choice DynamicReferenceParameter not returning list

I have been trying unsuccessfully to get DynamicReferenceParameter of the Active Choice plugin to show previously selected values as list, however it either shows them on one line or it treats each ...
2
votes
1answer
56 views

What tool or type of tool am I looking for?

We have an operations team that looks after our running tenants. They respond to requests and incidents from users by following specific processes, they might for instance restart a container on an ...
1
vote
1answer
54 views

how can I make jenkins find 2 jenkinsfile in a repo with multibranch?

I am quite new to DevOps and Jenkins in particular. I have played around and created some pipelines jobs. I wanted now to start practicing with a jenkins in local, and apply CI-CD to an small project ...
1
vote
1answer
61 views

Jenkins downstream pipeline jobs not always triggered as expected

I have three separate Multibranch pipeline jobs set up on Jenkins, which I want to be called sequentially as downstream-jobs. Please note that, all these 3 jobs have separate git repositories! Each ...
0
votes
1answer
30 views

Auto create Jenkins jobs for branches and pull request via declarative code in scm

I am looking to auto create jobs in jenkins upon pull request , branches, master push etc similar to what we do in Gitlab. My SCM is butbucket here. I have so far setup docker based agent integration ...
1
vote
0answers
14 views

How to add multiple run in parallelStagesMap in declarative pipeline?

def jobs = [ [ "name" : "LegacyUnitTests", "runFolder" : "recipes", "run" : { -> sh "docker-compose -f docker-...
0
votes
1answer
56 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
28 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
31 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
52 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 ...
1
vote
1answer
18 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 ...
0
votes
0answers
135 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
243 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
30 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 ...
1
vote
1answer
39 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
160 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
39 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
1k 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
32 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 ...
2
votes
2answers
59 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 ...

1
2 3 4 5
12