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

Jenkins - Add label to Pull Request via Github API

According to GitHub API user can add label to an issue using this POST request. I tried using this request but with PR number instead to automatically set label on PR. Here is the function I wrote: ...
0
votes
0answers
33 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 ...
0
votes
1answer
14 views

How can I check if there is a new build the same jenkins pipeline

I have a github multibranch pipeline, in declarative format. It is configured to trigger on pushes to pull request branches (ie, branches which are included in pull requests to a target branch, say ...
0
votes
0answers
9 views

Setting up PR Build in Jenkins when raised from stash

Setting up a PR request to have a build run in Jenkins. Our source repository is Stash. Essentially, the PR will be from any branch (each developer will create their own branches) to develop I have ...
0
votes
0answers
17 views

Jenkins Declarative Pipeline not running

I have just upgraded the jenkins version and wrote my first Jenkins declarative plugin. Following is the pipeline definition pipeline { agent any stages{ stage('Welcome'){ steps{ ...
0
votes
0answers
15 views

How can I find out the latest stable Jenkins version via API call?

I'm trying to write a script that creates a Docker image from a Jenkins image, that is, the first line of my Dockerfile is... FROM jenkins/jenkins:2.249.3 However I wanna be smart and write a script ...
0
votes
0answers
6 views

Need advice to setting up a Jenkins blue/green infrastructure, from a high level?

I'm trying to use Terraform to setup a blue/green Jenkins deployment. The idea is to setup a green infrastructure for testing, and when that is good, promote it as the blue node to be used for ...
2
votes
1answer
37 views

branch specific jenkins pipeline trigger

I am trying to trigger a jenkins pipeline job only when a pull request has been approved & merged to a specific github branch in our CI/CD implementation. currently whenever i merge a PR to ...
0
votes
0answers
29 views

getting error in Jenkinsfile - command not found

I'm trying to setup my company's first CI/CD pipeline, to build & deploy docker containers in gke, it has been a a great learning curve so far, however I'm stuck with error in Jenkinsfile /var/lib/...
0
votes
2answers
48 views

Jenkins: how to run task every 30 days

Jenkins version is 2.235.5 (I should update it to next LTS version 2.249). I configured Jenkins to run a job periodically every 30 days: Build Triggers → Build periodically → Schedule: H 3 */30 * * ...
0
votes
1answer
21 views

Jenkins multi-agent build switching directories behind the scenes preventing AWS CodeDeploy plugin from zipping built files

I've narrowed my problem down to a very specific cause but am not sure how exactly how to fix it. A Jenkins server set up using Jenkins-configuration-as-code in a docker container runs a pipelineJob ...
0
votes
0answers
169 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: [&...
2
votes
1answer
40 views

Pass information between Jenkins Job builds

Please excuse my non-fluent terminology.. There is a Jenkins server, master and a few slaves, there is a pipeline job.. let's call it playground I run the job once, I want to save some data somewhere. ...
0
votes
0answers
7 views

Maven looks up for artifact in libs-snapshot repo instead of the specified repo

I have an aggregator POM file and two Maven projects: sample-project-runner-parent - This is the Parent Artifact a) sample-project-runner-model - The first child module b) sample-project-runner - The ...
0
votes
0answers
51 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
32 views

Ansible fails in Jenkins pipeline when run from docker

I'm trying to deploy a build via Jenkins pipeline using agent docker and Ansible playbook but it fails on Gathering Facts stage as shown below: TASK [Gathering Facts] **********************************...
1
vote
0answers
37 views

How does one build a build pipeline with versioned build artifacts?

I'm not sure quite how to phrase this question. I'd like to learn either by answer here or sharing a reference to read from: How do I build a pipeline with versioned build artifact? I've inherited an ...
0
votes
1answer
22 views

Updating a TFS repo with Jenkins

I want to checkout a TFS repo, make some changes to a file and send the changeset to TFS. What are some ways to accomplish this with Jenkins?
1
vote
1answer
38 views

Jenkins Credentials Manager + Active Choices

I want to access Jenkins Credentials to authenticate with Git before the pipeline script - to fill Active Choices parameter. In the pipeline I simply do it with withCredentials. But during pre-...
0
votes
1answer
24 views

How to increase jenkins logger size?

I use Jenkins log recorders as described in docs: https://www.jenkins.io/doc/book/system-administration/viewing-logs/ It works, but log is only about 255 lines long, which is too short for my ...
1
vote
0answers
16 views

How can I configure Jenkins pull request builder to run tests on Github dependabot PRs

Our Github project repository is configured to receive security PRs from dependabot, and we get them periodically. We are using Jenkins with Build Triggers so that when a user comments /test in a PR ...
0
votes
0answers
17 views

What is the best way to integrate a open source secrets detector into a deployment pipeline and Github?

There are a number of open source secrets detectors that run via CLI. (Gitrob, trufflehog) However, is there a good way to integrate these that they run on a per PR basis? The use case here would be ...
0
votes
0answers
89 views

How to git clone over SSH in jenkins job using credentials system

I'm trying to set up a simple jenkins job that will clone a git repo. Most guides online suggest to use a username and password combination which is soon to be deprecated. Others involve generating ...
0
votes
0answers
10 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
48 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
43 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
74 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?
3
votes
1answer
382 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
27 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
33 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
198 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
27 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
17 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
30 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
33 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
38 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
134 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
18 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
15 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
99 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
13 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
77 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
12 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
2 3 4 5
11