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
1 answer
14 views

Continuous deployment question

This question is not in case of kubernetes but when you use servers or docker for deployment using CICD tool like Jenkins or gitlab. In jenkins or gitlab I've agents/runners and in pipeline stages I'...
user avatar
  • 3
0 votes
1 answer
17 views

How to understand and resolve Jenkin job failure - Angular 13 app?

I'm new to Jenkins environment. I was asked to upgrade Angular 7.x app which was built 3 to 5 yrs back into Angular 13. Upgrading the Angular app is done. now I want to deploy my UI changes through ...
user avatar
  • 1
0 votes
1 answer
10 views

Does Jenkins 2.289.2 have a customizable workspace?

I don't know where this is set, but jobs from my Jenkins 2.289.2 server appear to be working out of the directory /home/jenkins/workspace/${job_name}. E.g. if I have a minimal pipeline script that ...
user avatar
0 votes
0 answers
16 views

Execute powershell on cifs share, Jenkinsfile on Windows agent

I am struggling with executing a powershell script with environment variables within a Jenkinsfile on a cifs/smb/samba share as a customworkspace. The Jenkins Agent is running on a Windows 10 VM This ...
user avatar
  • 1
1 vote
2 answers
31 views

Reuse block string without processing it on the fly

I have a block of code that work fine at the moment. But reuse that code is a little ugly. pipeline { agent any stages { stage('Stage 1') { steps { script { ...
user avatar
0 votes
1 answer
22 views

Transferred 0 file(s) while transferring war file from Jenkins server to remote server

There's a jenkins server where my jenkinswar.war file is present in /var/lib/jenkins/workspace/project2/target/jenkinswar.war I want this file to be transferred to other remote server at /opt/docker ...
user avatar
  • 1
0 votes
0 answers
9 views

Using AWS CDK to create a Discovery Service with multiple DNS Records

I've been attempting to deploy Jenkins on AWS using CDK. I have been following these 2 articles: https://tomgregory.com/deploying-jenkins-into-aws-ecs-using-cdk/ https://tomgregory.com/jenkins-jobs-...
user avatar
  • 1
0 votes
2 answers
34 views

Jenkins trigger the 2nd job when the first job fails

There is a system that periodically runs on Jenkins and that I follow with selenium. (I'm checking its performance on "manager/status" page in Tomcat). I want it to trigger the second job, ...
user avatar
1 vote
0 answers
36 views

API calls w/ global credentials in Jenkins active choice

Is it possible to use the Jenkins credentials set in the global credentials in the active choice plugin groovy script? I'm trying to make an api call that returns a list and display that as a choices ...
user avatar
0 votes
0 answers
90 views

Jenkins checkout GitSCM and git step how does it work internally and why

When I execute my pipeline and I go and see on the actual Jenkins slave, the checked out commit doesn't have latest changes. But the logs and actual files in the workspace on the Jenkins slave running ...
user avatar
1 vote
0 answers
16 views

Access commit webhook message in Jenkins pipeline

I've got a Jenkins server integrated with a GitHub Organization through a GitHub App and the Jenkins GitHub Branch Source plugin, and it is working fine and triggering builds on commits as intended. ...
user avatar
0 votes
0 answers
36 views

How to fix service connection error between Jenkins and Azure Devops?

We are trying to connect Jenkins to Azure so we can build what we have in Jenkins through Azure. We are using a local machine not a VM. It operates on Windows 10. When trying to verify the service ...
user avatar
1 vote
2 answers
79 views

Rebooting node at end of Jenkins pipeline

I have a pipeline that runs on a dedicated bare metal node for automated performance benchmarking. Using bare metal is necessary due to the nature of the project. Near the end of the pipeline, the ...
user avatar
  • 111
2 votes
1 answer
41 views

Is the forking git workflow used outside of open source projects?

Here is the Forking workflow if you're not familiar with it. The company I work for is mostly comprised of historically open source developers. This has caused them to be stuck on the forking workflow ...
user avatar
0 votes
0 answers
15 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
1 answer
13 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
19 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
1 answer
24 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
32 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
1 vote
3 answers
126 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
23 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
98 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
29 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
2 answers
1k 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
27 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
154 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
43 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
310 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
45 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
  • 283
1 vote
1 answer
51 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
122 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
  • 171
2 votes
1 answer
59 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
194 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
1 vote
3 answers
79 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
  • 11
0 votes
0 answers
12 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
53 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
10 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
542 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
487 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
856 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
84 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
305 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
171 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
329 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
83 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
51 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
85 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
835 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
232 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
515 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

1
2 3 4 5
13