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
1answer
19 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
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
0answers
9 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
9 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 ...
0
votes
0answers
20 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 ...
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
19 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
1answer
23 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
22 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
0answers
17 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 ...
10
votes
2answers
3k views

Is it ok to have a Jenkins Server without slave node?

In my team we have one Jenkins server with one master node & one slave node in the same server. We use Jenkins Pipelines and surround everything with node{}. In a colleague's team I have seen ...
1
vote
1answer
201 views

Is there a Jenkins plugin for downloading source code?

Although our own sources are checked out from a revision-control systems, the third-party software we depend on needs to be downloaded from their respective sites. The plugin I'm looking for would ...
0
votes
0answers
11 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
24 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
15 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 ...
3
votes
2answers
461 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 ...
2
votes
1answer
53 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
39 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
36 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
23 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
10 views

How to add multiple run in parallelStagesMap in declarative pipeline?

def jobs = [ [ "name" : "LegacyUnitTests", "runFolder" : "recipes", "run" : { -> sh "docker-compose -f docker-...
5
votes
2answers
1k views

Monitor Jenkins node/slave health

For a project I'm working on, we need to create a Jenkins node in an AWS environment. For this task, we will work with the docker image, which is available on https://github.com/jenkinsci/docker-ssh-...
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: [&...
0
votes
1answer
25 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
1answer
49 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 -> ...
1
vote
0answers
22 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
0answers
9 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 ...
0
votes
1answer
15 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
1answer
400 views

Jenkins transferring file using publish over SSH plugin but file not show in remote development server

I have a running a jenkins job by jenkins pipeline. i wants to send an environmental (.env) file from my local system to my server using Publish Over SSH Plugin. Here is my jenkins snippet: stage('...
0
votes
1answer
24 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 ...
2
votes
2answers
9k views

Jenkins API call (or Groovy builtin) that returns list of all currently running builds of jobs

There's plenty of questions asking how to return a list of all jobs on your Jenkins instance, or even to get a list of which jobs are currently running, but I have a more specific use-case. I need ...
1
vote
2answers
475 views

Jenkins trigger build if shared library changes

I have Jenkins Pipeline job define in my git repo as. // File: deployment/jenkinsfiles/staging/Merge @Library("my_shared_lib") _ import com.company.myteam.Constants pipeline { agent { label "...
0
votes
1answer
80 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 ...
0
votes
0answers
55 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 ...
2
votes
2answers
562 views

How to read array and loop server selection and deployment

I have configured jenkins parameter deployment job using active choices parameterize plugin. In my dev server section have two servers called, 192.168.94.139, 192.168.94.140 I want to read this ...
0
votes
2answers
63 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, ...
1
vote
1answer
491 views

403 forbidden error on calling jenkins post api from python script

I am trying to build a python script that will build jobs externally but when I am executing it, throws 403 forbidden error for build jobs call other get APIs are working fine. Below is the python ...
1
vote
2answers
1k views

How to make a Jenkins API call when using “Log in with Google” as security?

Jenkins API calls are generally made using a username/password combination, or other set of credentials. We have a Jenkins instance using "Log in with Google" authentication, meaning no credentials ...
1
vote
1answer
23 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
94 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://...
13
votes
3answers
51k views

How to define variable in Jenkins declarative pipeline?

I defined variable in declarative Jenkins pipeline script but having issues with simple variable declaration. Here is my script: pipeline { agent none stages { stage("first") { ...
0
votes
0answers
59 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 ...
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
37 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
44 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
354 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....
1
vote
1answer
33 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 ...
0
votes
2answers
136 views

Why many companies prefer Jenkins than Aws CodePipeline? [closed]

I have searched few job sites. Many companies are searching engineers who can handle Jenkins as CI platform. I think the Aws CodePipeline is easier than Jenkins. Anyone can advise me, please. Thank ...
2
votes
0answers
29 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 ...
29
votes
8answers
68k views

How to safe restart Jenkins?

I need to make some configuration changes on our Jenkins instance that will involve restarting Jenkins a couple of times. However, our developers are committing frequently enough that I haven't seen ...

1
2 3 4 5
12