2022 Developer Survey is open! Take survey.

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

Azure DevOps Pipeline Calling Jenkins just keeps running When Pipeline in Jenkins is completed

We are calling a Jenkins Pipeline from Azure DevOps. Our Jenkins server is behind firewall and installed on Linux VM on Azure Cloud. To Call the pipeline from Azure DevOps we placed a self hosted ...
user avatar
0 votes
0 answers
8 views

Moving a file (with encrypted token) after building a docker on Jenkins

I have a project with NextJS and I build it using Jenkins. I run my app inside a docker container, and pull my code from Github. In my local project, I have a git-ignored file named .sentrylirc that ...
user avatar
  • 101
0 votes
0 answers
12 views

"Lazy-building" of libraries with Jenkins

I have a project with multiple "products" which all use a common shared library. This shared library is a very great proportion of the compilation effort, so it would be good if we could ...
user avatar
0 votes
0 answers
7 views

Understanding Jenkins plugins and agent

I was trying to understand jenkins agents. This page asks to first create jenkins docker agent. But it doesnt say where to execute these steps? Q1. Should we be executing these steps on node or a ...
user avatar
  • 121
2 votes
0 answers
21 views

Jenkins declarative pipeline with mvn, releases and versioned artifactory

We have a requirement to support human defined versions (not auto generated) for patch releases. I'm trying to figure out a way to do this in Jenkins. We have: BitBucket, Jenkins, Nexus/JFrog (either)...
user avatar
  • 121
0 votes
2 answers
31 views

In Ubuntu, how do I change the home path of Jenkins using the CLI?

In the Jenkins web interface, under Home directory (Dashboard -> Mange Jenkins -> Configure System), the help section says the following: "By default, Jenkins stores all of its data in ...
user avatar
0 votes
1 answer
22 views

In Ubuntu, how do I authenticate to trigger a Jenkins job remotely using the CLI?

As far as I understand, using the Linux CLI, builds can be triggered remotely using the curl command and the following URL syntax: <JENKINS_URL>/job/<JOB_NAME>/build?token=<TOKEN_NAME&...
user avatar
2 votes
1 answer
91 views

Which CI/CD tool(s) should a DevOps newbie learn?

I'm new to DevOps and I'm learning that: The adoption of containerization and GitOps have been clear trends Some CI/CD tools (e.g. Jenkins X) are more geared toward this trend than others (e.g. ...
user avatar
0 votes
0 answers
10 views

How to run two views in Jenkins and run multi Jobs parallelly?

How to add the views in pipeline script to run the views parallelly. I have different views like EX: view name: Project A --> Project A consists of different jobs like job1, job2,...etc view name: ...
user avatar
  • 1
2 votes
1 answer
316 views

How to solve my error about saving the global configuration before it is loaded in Jenkins?

I recently upgraded Jenkins from 2.204.4 to 2.332.1. In doing so, I received the following error. java.lang.IllegalStateException: An attempt to save the global configuration was made before it was ...
user avatar
0 votes
0 answers
7 views

Jenkins Artifactory Plugin - Maven wrapper not publishing custom artifacts which have been installed

When building my Maven project, I expect the Jenkins Artifactory Plugin to deploy/publish artifacts which I successfully maven-install (ie, copied from the /target folder to my local maven repo). The ...
user avatar
0 votes
1 answer
31 views

How to use the Shared Workspace plugin in a Jenkins pipeline?

I want to use the Shared Workspace plugin, so I set up the following key/value pair in my Manage Jenkins -> Configure System -> Workspace Sharing Name: sandbox-workspace Repository URL: git@...
user avatar
  • 285
1 vote
0 answers
23 views

Add Cache-control: no-cache,no-store metadata to object uploaded via S3 Publisher plugin in Jenkins

So i have a jenkins job that builds a project and then uploads specific files to an S3 bucket. I've set up the S3 Publisher plugin shown in the attached image, but the metadata is still not being ...
user avatar
0 votes
1 answer
125 views

Jenkins Git plugin, Error: Name must follow the pattern

I receive an error after launching a Jenkins pipeline, but right at the SCM step, configure via the plugin (not by the groovy). The message refers to a "Name" wrong spelled, but I can't ...
user avatar
  • 103
0 votes
0 answers
28 views

Access denied while pushing image to GCR via a Jenkins job

I'm running into a strange issue where my Jenkins job fails with the following error while pushing the docker images to GCR. Although if I SSH into that particular Jenkins worker node and run the step ...
user avatar
  • 273
1 vote
1 answer
41 views

Jenkins Build periodically

I currently have a job running from 7AM-2PM every 15 minutes Monday->Friday. It is defined so: H/15 7-14 * * 1-5 How can I update this to start at 7:30AM instead of 7AM? I still want it to run ...
user avatar
0 votes
1 answer
78 views

Running builds requiring docker daemon in Jenkins installed using helm and running as containerd container

Jenkins is installed using official helm chart on Kubernetes cluster that uses containerd as container runtime. How to configure containerized agents which will run docker client commands e.g. for ...
user avatar
  • 151
2 votes
1 answer
41 views

Where does multi-role variable goes in Ansible?

There are multiple kind of variables in Ansible. And I find it overwhelming to wrap my head around them. Some of them are: The one we can write in roles//vars/main.yml The one we can write in the ...
user avatar
0 votes
0 answers
134 views

Use buildx in Jenkinsfile for platform specific build

I'm currently building my docker image declaratively in a Jenkinsfile by: app = docker.build("...") Now I need to generate a platform specific build for ARM64. For this purpose docker ...
user avatar
  • 101
0 votes
3 answers
50 views

Jenkins: Stagger triggering of next pipeline steps

I have a daily Jenkins trigger job that sets off a bunch of CI jobs based on a cron timer. All the daily jobs are set off by this trigger job, the daily job itself doesn't do anything. However, this ...
user avatar
  • 1
0 votes
0 answers
11 views

Question about Jenkins deployment based on .NET Projects

So I was tasked to automate the build/deployment process for our projects and since the project stucure is rather unique, I would like to ask if an automation is even possible in my case. The project ...
user avatar
  • 1
0 votes
0 answers
43 views

start downstream jenkins job at specific commit

We're using declarative pipeline files to trigger jobs inside source control. I have one pipeline for testing, and another pipeline for deploying. I know if testing passes I can use buildJob to start ...
user avatar
  • 101
0 votes
0 answers
8 views

Parallel testing Desktop Win Ui 3 application delivered as .msix?

I'm looking for best solution to perform Appium (Windows application driver) UI Tests on WinUI3 Application in parallel. UI tests take control over mouse, so it's impossible to test more that one ...
user avatar
  • 1
2 votes
2 answers
230 views

Shared Jenkinsfile for multiple pipelines (separate source repositories)

I'd like to write one Jenkinsfile to be shared between a number (~50) of pipelines/jobs, where each job handles the creation of a library from a specific source (git) repository. Currently I have one ...
user avatar
0 votes
1 answer
216 views

how to create dynamic stages in jenkins pipeline

I want to use a python script as input to create stages in jenkins pipeline test.py {'job-name': 'Test1', 'action': 'a', 'targetname': 'x'} {'job-name': 'Test2', 'action': 'b', 'targetname': 'y'} {'...
user avatar
0 votes
0 answers
195 views

how to execute a python script in jenkins pipeline as a stage and use the output of python script to declare further stages in pipeline as next stage

I have written a python script which provides me a output like this as a dictionary, test.py: {'job-name': 'Test1', 'action': 'a', 'targetname': 'x'} {'job-name': 'Test2', 'action': 'b', 'targetname': ...
user avatar
0 votes
0 answers
56 views

Jenkins Gitlab integration Client error: Remote host terminated the handshake

I have installed Jenkins version 2.303.2 in RHEL and installed gitlab plugin in it. From the Jenkins server I can telnet to gitlab server but when I try to configure gitlab in Jenkins UI, it gives ...
user avatar
  • 101
0 votes
1 answer
160 views

Can one run a docker container with systemd from a jenkins pipeline?

I have been unsuccessful running a docker container with systemd from a jenkins pipeline without getting the following error message: ERROR: The container started but didn't run the expected command. ...
user avatar
1 vote
1 answer
96 views

how to increase "Atom feed for all" default value

Inside any Jenkins job, I have the button "Atom feed for all" at the bottom of the page. It gives an XML with details about the last 10 builds. I need to increase it somehow to get more than ...
user avatar
0 votes
2 answers
181 views

What is the best practice for a multibranch pipeline configuration?

I'm messing around with a multibranch pipeline in jenkins. Currently we have zero pipelines in production and everything is using freestyle jobs which is very sloppy. I have my own multibranch ...
user avatar
0 votes
1 answer
57 views

Execute python file existing inside image with Jenkins

I have an Image A, which has a python file "main.py". I want to know how I can use Jenkins to run that file from a different pipeline. I want to use Jenkins to go inside that image and then ...
user avatar
1 vote
1 answer
41 views

Building a pipeline to recognize changes in a terraform template compared to the git commit before and having it apply changes using specified command

Looking to get pointed in the right direction: I am trying to build a pipeline that will recognize changes in a remote terraform template that will recognize changes compared to the previous git ...
user avatar
-1 votes
1 answer
61 views

how often Jenkins should be upgraded [closed]

Currently we have the version 2.200 installed and we want to upgrade it. I want to know what is the best way to do it. Thank you
user avatar
3 votes
1 answer
540 views

How to get the classic Jenkins build status icons back?

From my POV the classic Jenkins build status icons were, and still are, a masterpiece of icon art: All the others weren't, and still aren't, bad either. (How is the saying? "If it ain't broke, ...
user avatar
0 votes
1 answer
152 views

Checkout shared library with tag with legacySCm

So trying to checkout shared library by tag. This works perfectly with moderSCM, but for reasons we need to use other way (legacySCM); def lib = library identifier: 'jenkins-shared-library@41', ...
user avatar
  • 101
0 votes
1 answer
238 views

How to exit a jenkins job if a script executing gets access denied?

I have written this script that performs db backup #!/bin/bash #For taking backup DIR=/media/storage/backup/db_backup/ DATESTAMP=$(date +%d-%m-%y-%H-%M) DB_USER=backup DB_PORT=$2 DB_PASS='secret' ...
user avatar
0 votes
0 answers
30 views

Why Jenkins Blue Ocean with inheritance Job does not log ? Yet logfile is created

I'm willing to switch to blue ocean however I can't get the pipeline logs to show in inheritance "classic" jobs (https://plugins.jenkins.io/project-inheritance/) : I see that freestyle jobs ...
user avatar
  • 101
2 votes
0 answers
50 views

In Jenkins, what plugins and/or configurations should I use to promote/redeploy Docker images and Git branches

I have set up a Jenkins job using the multibranch plugin. Via my Jenkinsfile, Jenkins executes the following steps: Build: docker-compose build Test Push Git ref to internal Git repository Tag local ...
user avatar
0 votes
0 answers
19 views

Jenkins - How to reserve a resource for a branch in a multibranch pipeline

I have a small group of developers working on tickets from our customers. What we need is to be able to allow fast testing by the users to validate de changes done in their tickets by the developers. ...
user avatar
0 votes
0 answers
112 views

how can I redirect Jenkins stage console log to a file

I have a situation when I have Jenkins log compiled from parallel stages creating an un readable log file. I am looking for a way to redirect stage log output to a file (per stage) so I can filter ...
user avatar
0 votes
0 answers
23 views

What is the best approarch for global variables in Jenkins?

I have a project with several pipelines, each one for one microservice and its 'dev' branch counterpart. I was wondering thares a way of declaring these variables globally in the Jenkins pipeline, so ...
user avatar
1 vote
1 answer
83 views

Run multiple (dynamic list) other jobs from a single job

I have 30+ jobs in jenkins that deploy code. For any release, it could be 1 to 30 of those jobs that need to be run. Each job is standalone and deploys its piece independently. For simplicity let's ...
user avatar
1 vote
0 answers
301 views

net.sf.json.JSONException: Invalid JSON String error on jenkins

Warning: API call to create metrics set failed: [Pipeline] echo net.sf.json.JSONException: Invalid JSON String at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143) at net.sf.json....
user avatar
1 vote
1 answer
133 views

Why does Jenkins' Stage View not show my jobs as ending?

I am using Jenkins' remote API (XML & JSON) to submit Jobs, run them & retrieve the logs. When observing the jobs in Stage View, I noticed that (following a change in my "submission ...
user avatar
  • 113
2 votes
1 answer
205 views

Re-running a pipeline job if failed

I've heard about the Naginator plugin, but unfortunately it's only for freestyle job type. Is there any solution for pipeline jobs to be triggered if they failed? I thought about creating a command in ...
user avatar
0 votes
0 answers
46 views

how good are azure containers as jenkins agents? [time of execution/stability/price]

I am migrating on-premise Jenkins to Azure Cloud. I use Jenkins to build software, build takes usually about 8 GB of RAM and uses both Windows and Linux VMs as nodes. What is better solution in Azure ...
user avatar
1 vote
0 answers
59 views

Jenkin "unable to find valid certification path to requested target" getting error while installing plugin

We are trying to set up jenkins. When we trying to install plugin getting the below error. We also tried to import the trusted certificate into the JVM directly still getting same error. sun.security....
user avatar
3 votes
1 answer
67 views

What challenges did you face once you gave devs access to Jenkins jobs?

I am a DevOps engineer at a medium-sized company. Our team is super busy and we have a lot on our plate. Recently we decided to see where we can improve our productivity. One of our main ...
user avatar
1 vote
1 answer
127 views

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for ...
user avatar
1 vote
0 answers
34 views

Jenkins - restrict which nodes can be selected by user when creating jobs (already tried Project-based Matrix Authorization Strategy + folder plugins)

I need to securize nodes of Jenkins and allow them to be used only by one user. I read existing question : "Jenkins - restrict which nodes can be selected by user when creating jobs" but ...
user avatar
  • 11

1
2 3 4 5
13