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
7 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
12 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
vote
1answer
37 views

How to handle services when the developers provide incorrectly in k8s

I provided the script to provision a new feature environment inside k8s it will create all the configs required, namespaces, resources and whatever... in my script, I described this param: parameters {...
0
votes
2answers
25 views

trigger jenkins jobs only when a specific branch is updated

I require a setup in jenkins, which enables me to trigger a jenkins job based on a push event to a specific branch in github. tried so many methods neither worked.
0
votes
1answer
43 views

convert declarative pipeline to scripted pipeline

I already used the following declarative script as a part of my cleanup script, now I should convert it to the scripted pipeline, how I can convert the post to the scripted pipeline? stages { stage ('...
3
votes
1answer
36 views

What is the difference between Jenkin's `Replay` and `Rebuild` options?

If you want to re-run a Jenkins job, you can click the Rebuild button which sometimes appears as the Replay button. What is the difference Rebuilding a job versus Replaying it? Why is it that some ...
0
votes
1answer
24 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
1answer
27 views

git reflog is showing plain text password used

We are using Jenkins Freestyle Project to push the changes on the remote server. We are executing shell script on remote host using ssh for it. To pull the changes on remote host, we are using origin ...
0
votes
1answer
32 views

Curl Error in HTTP2 framing layer when trying to install Jenkins plugin

I am trying to create a custom Jenkins docker image. For that I need to install certain plugins in Jenkins. I am doing so by adding the below lines to the Dockerfile COPY plugins.txt /usr/share/...
0
votes
0answers
3 views

is it possible to share gradle setting.gradle and build.gradle in kubernetes jenkins slave pod

Now I am using jenkins master-slave mode in kubernetes cluster to implement my CI/CD workflow. I have a project with 30+ modules integrete in one root project, now I am build each module seperate, but ...
1
vote
1answer
23 views

How do I use Jenkins to maintain versioning on a Python project?

An independent Jenkins server monitors my develop branch in Team Foundation Server's Git repository and builds a new package when it's updated. The problem I'm having is that it uses the same version, ...
0
votes
0answers
10 views

Is it possible to run multiple builds in multiple docker containers by starting a job build or triggering it from git on Jenkins?

I investigated the plugin to build inside a docker container using a Dockerfile or a docker image, but it seems I don't quite get it yet. For example, I have a job configured on Jenkins which is built ...
0
votes
0answers
15 views

Jenkins : How to get the name of each “stage” within a parallel block?

If I have : parallel( label1:{ <do something> }, label2:{ <do something else> } ) How could I get the "stage" name (i.e. label1 or label2) in each of them ? For sure, I don't ...
0
votes
0answers
18 views

Reboot a node as part of a test

I'm developing a pipeline for a test that has a very particular requirement: the test MUST restart the agent VM and the check that the process worked correctly. This is the whole objective of the test,...
0
votes
0answers
13 views

Jenkins Slack plugin gives SSLHandshake Error

We have some restrict envronment for our Jenkins master. We had allowed limited IP addresses outbound traffic. Slack might be using pool of IPs, when they match our range, we get the message in slack. ...
0
votes
1answer
22 views

Jenkins Helm Chart - kubernetes-plugin pulling image from a private gcr

I am failing to pull images from a private gcr repo through helm jenkins on a private k8s repo. I am getting: rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have ...
0
votes
0answers
15 views

Jenkins pipeline: some folders in workspace are owned by root

In the pipeline job, the Jenkinsfile is provided from SCM, github: However it's causing permission issue. Then job runs on an aws ec2 instance, so the first step is to pull from github. I then ssh ...
0
votes
1answer
33 views

What is the best approach to deploying to multiple servers using Jenkins?

Trying to figure out the best approach for deploying to multiple servers using Jenkins Blue Ocean pipeline. We will have six servers in development, six in QA, six in Staging, and six in production. ...
1
vote
1answer
34 views

Jenkins - restrict which nodes can be selected by user when creating jobs

I have a situation where I have a Jenkins installation that is used by multiple teams. Each team gets their own Jenkins node, which has access to certain parts of the organization that the team is ...
0
votes
0answers
15 views

How to create Jenkins build which pack the project to tgz file and push it to artifacotry

I'm trying to practice on dockers, and as part of it, I created 3 containers: Jenkins, Bitbucket, and Artifactory. I'm trying to create a Jenkins job that for every change in a specific project in BB, ...
1
vote
0answers
13 views

is it possible to see jenkins jdk install progress

I am config jdk 11 in jenknins 2.235.3 running in kubernetes v1.16 cluster, I just want to know if it has a way to see the jdk install progress? so I could know if the config is correct or other ...
0
votes
1answer
32 views

Jenkins Not pulling the latest commit into master or slave

I have a Jenkins pipeline where after every build I change a file(increase build version in a property file) and checkin back to the git repository. After a build, I commit some differnt code change ...
0
votes
0answers
10 views

gradle could not installed with jenkins in kubernetes cluster

I am using jenkins version 2.235.3 in kubernetes v1.18 cluster, now I am install gradle plugin and configure to install gradle to jenkins automaticlly like this: after hours, I login into jenkins's ...
1
vote
1answer
23 views

Cannot understand jenkins deployment error

I am new to jenkins, and i am trying to make a deployment into a remote serve, but i am getting the following error: Current dependency:com.vmd positionWatchLoader latest.integration :: loading ...
1
vote
1answer
29 views

Need help getting documentation of Jenkins

I need a little help over here: In every site I seek info to get started using Jenkins (i.e.: devopscube) they say is very easy to understand, and theoretically is really simple once you have look ...
0
votes
0answers
11 views

Jenkins hits timeout error when trying to log the user in

We are using 2.46.3 and we do use LDAP as the user store. The jenkins master is running behind a tomcat server. Occasionally we face 504 Gateway timeout errors when trying to log in to Jenkins. The ...
0
votes
0answers
11 views

Jenkins job build is getting failed while concurrent builds is happening in job with fatal:not a git repository

When I'm deploying in jenkins job the build will run fine but same time if I deploy again in same job like concurrent build then I'm getting this error "fatal: not a git repository(or any of the ...
1
vote
1answer
36 views

SSH connection to jenkins server

I have a absh script which connects and exexutes programs from my local to remote server and now this should be executed from jenkins build so for this jenkins is taking continous changes from git for ...
0
votes
0answers
9 views

jenkins declarative pipe - withCredentials does not work

I am using git branch: '<branch>' , credentialsId: 'ID_JENKINS' , url:<tfs_server> to clone a repository, which works without problems. But when I would like to do the same with ...
2
votes
1answer
15 views

Control GKE CICD from a Jenkins in a lab with private network?

For a test purpose I need to use my locally provisioned Jenkins with Vagrant in order to connect to GKE and use pods to build. Is that possible, because from what I read K8s will need access to ...
0
votes
2answers
42 views

Jenkins - docker login doesn't seem to persist: docker pull won't work but docker-compose can pull without problems

I am setting up a new Jenkins as our old one is based on a deprecated base image. Dockerfile is: FROM jenkins/jenkins:lts-centos7 USER root RUN yum -y install docker \ && yum clean all ...
7
votes
1answer
57 views

How to have jenkins add a review to a pull request

I have a Jenkins instance, with credentials for a "robot" github account, which we use to interact with the GitHub API as a team. Typically, jobs are defined as declarative pipelines. I am ...
1
vote
1answer
56 views

What's in THIS environment?

We work on multiple java web projects going on at the same time and those are all being tested on several different QA environments. I'd like to show on our support portal what projects are in what ...
1
vote
1answer
35 views

How to revert jenkins Safe restart?

Jenkins was having issues and I safe rebooted it in order to solve the issue but the issue got solved the reboot. Some jobs have ours to run so is there way to cancel the reboot?
2
votes
0answers
37 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 ...
0
votes
0answers
14 views

How to enable timeout in pipeline based on a condition?

I have a Jenkins pipeline with the following stage - stage('Test') { options { timeout(time: 5, unit: 'MINUTES') } steps { script { ...
1
vote
2answers
50 views

How to determine whether the Jenkins build was started by a user or the scheduler?

I have a Jenkins job which does some unit-testing for some code. It can be started in two possible ways: By the scheduler - it polls the Perforce server, and starts the job when it detects a code ...
2
votes
1answer
64 views

Jenkins cron works only for the 1st line

I'm trying to use Jenkins to run a small monitoring script every minute on two separate ECS clusters. In the text box that opens when you enable "Build periodically with parameters" I wrote: ...
0
votes
0answers
38 views

How to edit xml files through Jenkins pipeline?

I've to update xml file as a part of pipeline. From following, I've to replace value from true to false <bean id="SecurityFilter" class="xxx"> <property name="...
1
vote
1answer
32 views

Unable to get value of password parameter into another parameter

In Jenkins pipeline parameter say Branches of type Active Choice Reactive Parameter, I've to auto-populate branch names hence I've following command, which I can execute in parameter's Groovy script - ...
0
votes
0answers
13 views

Is there any way/API available to check Jenkins is in quiet mode?

Is there any way/API available to check Jenkins is in quiet mode ?
0
votes
0answers
4 views

How to get http status code for Jenkins quiet down state

I want to get the http status code when Jenkins is in quiet down mode. Is there any way?
0
votes
1answer
63 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
84 views

How to determine if a Jenkins build is triggered by a Pull Request merged to Master

I think i've scoured every post on this topic but haven't found my specific scenario. (Maybe that means I'm building the wrong thing OR i've built something unique and new? The former is far more ...
1
vote
1answer
63 views

How to get logged in username of Jenkins in parameter's Groovy script?

In Jenkins parameter, I'm writing Groovy script and in that script I need to pass Jenkins logged in username NOT user. User and username, could be different Ex - User, that is displayed left to 'log ...
1
vote
0answers
21 views

Passing parameters of extendedChoice type to Jenkins Pipeline via jenkins-cli.jar

I have the following declarative pipeline. It defines checkbox multi-choice parameter: pipeline { agent any options { ansiColor('xterm') } parameters { ...
0
votes
0answers
13 views

Avoid RejectedAccessException when adding key,val to environment using env[key]=val in Jenkins Declarative pipeline

Adding key,val to environment using below: pipeline { stages { stage("Shallow clone or fetch"){ steps { script { readProperties(file: "f....
2
votes
1answer
54 views

Docker calls to detect app crashing inside it

Is there a way to know if an app has crashed inside docker using maybe bash script or API call from host container, am implementing CI/CD using Jenkins and will be deploying the built app via ssh to ...
1
vote
0answers
17 views

How I can trigger CRON with parameters without using following plugin “parameterized-scheduler-plugin”

Actually, I do not have Jenkins admin right and instead of requesting admin to install "parameterized-scheduler-plugin", are there any other plugin-less alternatives.
0
votes
0answers
12 views

ec2fleet plugin to launch slave nodes in jenkins

I have a requirement to create && terminate the slave machines from my Jenkins master. For this i am using AWS spot instances and EC2 fleet plugin in Jenkins. I am able to launch the spot ...

1
2 3 4 5
11