Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
5 views

Best practice for installing new jenkins server

When creating a fresh new Jenkins server is it better to install it on a VM or Docker? I know that for most situations when you want just one bit of software on a server the answer would be Docker. ...
0
votes
0answers
4 views

Maintaining Jenkins configuration with docker

I'm trying to configure CI with Jenkins for my private project. Problem: whenever I start building a pipeline project, it gives me ,,Docker is not found'' error whenever I try to work around this by ...
0
votes
1answer
10 views

How can I achieve better load balancing of different systems on a Jenkins?

We have four test machines spread over a Jenkins. We would like to have a better distribution. Example: If machine one is running with a test job, the second job should detect that node one is ...
0
votes
1answer
10 views

Jenkins: Gradle daemon closes unexpectedly

I am running Jenkins (ver: 2.150.3) with gradle (ver: 4.1) I am getting an error that says the gradle daemon closed unexpectedly. Google says it would most likely be gradle running out of memory. So ...
0
votes
0answers
15 views

Jenkins can't run ansible playbook

Unable to run ansible playbook invoked from Jenkins. I am getting Error the playbook: /var/lib/jenkins/roles/tomcat/main.yml not be found. But it is there in the server. I have invoked Ansible ...
-1
votes
0answers
10 views

Convert Jenkins job DSL to pipeline groovy

Here is the sample code: out.println "-------------------------" def param = params['Project'].toString() out.println 'foo ' + param + ' project: ' out.println 'Checkout a source code and post it ...
0
votes
0answers
28 views

How to run multiple containers with port expose

I have 2 images on my docker toolbox, for jenkins and for artifactory. I can use the command "run" for each to create a running container, jenkins on port 8080 and artifactory on oprt 8081, using the -...
1
vote
0answers
18 views

Is there an alternative to setting up the whole project workspace in a Jenkinsfile

I have a ROS project for which I'm looking to use Jenkins to set up a CI system. The project has a large number of dependencies which take a long time to build (they can't be installed on the build ...
0
votes
1answer
16 views

Jenkins is running as a docker image in a kubernetes cluster and won't come up due to plugin version incompatibility

We are running Jenkins as a docker image in a kubernetes cluster. However it does not come up any more because of some plugin version incompatibility. How can we upgrade the plugins, or disable them ...
0
votes
2answers
55 views

Connecting GitHub to Jenkins running on docker toolbox

Started to learn DevOps 3 days ago, so I have a lot to learn! I have a jenkins running on docker toolbox container and I can access it via 192.168.99.100:8080. I configured a job and managed to use "...
0
votes
2answers
26 views

Tomcat Restart from jenkins

I want to stop tomcat using jenkins. Tomcat is running as a seperate application server, I want to restart it using Jenkins console.
0
votes
1answer
16 views

What setting to use for jenkins tunnel?

I am trying to run a jenkins system on my macbook for testing Jenkins is running in the mac "Docker Desktop" in Kubernetes, using a helm chart It has a Kubernetes slave set up with the Kubernetes ...
3
votes
0answers
25 views

Can I use the Jenkins Rest API with user input?

I want my Jenkins Pipeline to have a user input step where it posts to a slack channel and waits for user input then uses the input to user enters (button in the slack message). So at the input step ...
1
vote
1answer
21 views

Jenkins: mercurial scm: clean=false is not working as expected

EDIT: It seems as if the MercurialSCM plugin hardcodes the update to use the --clean option. See this line. Anyone have any ideas what's the idea? I have the following checkout step in my Jenkinsfile:...
0
votes
1answer
12 views

Deploy to GKE from CI server outside of cluster

I'm setting up our CI (Jenkins pipeline) to deploy apps to a GKE cluster. Our Jenkins sever is running external to GKE or any Google Cloud infrastructure. I'm thinking of using a docker image with ...
0
votes
0answers
13 views

Golang, Jenkins and Kuberentes | Readiness probe failed on health check

I'm trying to deploy my buffalo golang app to Kubernetes over Jenkins. When I deploy the app it passes all phase but the pod isn't ready. I get the following error when I describe the pod: ...
0
votes
1answer
26 views

Jenkins Dockerfile declarative pipelines: getting the built image tag

I'm trying to get the image tag generated with the help of the dockerfile agent in Jenkins declarative pipelines. This Jenkinsfile is incomplete though, because I still need the deployment steps. ...
1
vote
1answer
28 views

How to define variable in Jenkins scripted 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") { def foo = "foo" // ...
1
vote
0answers
12 views

Flow for Confluent Plugins on Kubernetes

Our team is developing Confluent/Kafka Source Connector-plugins. Do you have any ideas on how to install/upgrade the plugins? How is the flow (git -> Jenkins -> running Source Connector) supposed to ...
0
votes
1answer
26 views

How can we get the jenkins console output in a text file?

How can i get the Jenkins console output in a text file? I want to share it with someone, is there any way to do it?
1
vote
0answers
11 views

Define views in Jenkins Multibranch pipeline jobs

Is it possible to somehow define views in Jenkins multibranch pipelines? I'd like to have a second view (after the Branches (NUMBER)), that shows only enabled branches. But I also want to keep the ...
0
votes
1answer
13 views

Specifying branch name for jenkins job through AnyStatus

I am wondering if anyone else has integrated before a parameterized Jenkins build with AnyStatus. When removing the parameter above, I am able to run builds using the branch specified previously from ...
4
votes
1answer
60 views

Jenkins: What is a build?

I'm coming from Ops and I don't have a heavy software engineering background. In Jenkins, what is a "build" exactly and why is it named such? When I build a shell/powershell script, I'm not really ...
1
vote
2answers
35 views

Archiving artifacts after build stage

How to archive the artifacts in Jenkins? Each time I build through Jenkins, maven overwrites the existing version with a new version. I need all the new/old versions to be saved, which I should be ...
0
votes
0answers
17 views

Jenkins - IBM UrbanCode - AWS & Azure cloud

For continuous delivery, we do manual deployment after generating binary artifacts from Jenkins pipeline(in an automated process). Further, for continuous deployment, we would like to use IBM ...
1
vote
0answers
23 views

Azure DevOps/Pipelines seed job equivalent?

I'm looking at moving to Azure and using Azure Pipelines (I've used Jenkins before now) - I plan to deploy to Azure Kubernetes Service and store my Docker images in an Azure Container Registry. Using ...
0
votes
2answers
27 views

How to get list of env variables from the root folder to jenkins job?

Using configure option, when we check the environment variables, we get only the variables which are available with in the folder or job. But, I want to get complete list of env variable from the ...
1
vote
1answer
26 views

Bash Tokenization Errors on Jenkins JNLP Slave

Why might the below bash commands give me an error on a Jenkins JNLP slave in Kubernetes cluster? Each work on a local machine. Error: Syntax error: redirection unexpected IFS='/' read -r -a branch ...
1
vote
2answers
54 views

Jenkins plugin recomendation

My company wants to visualize the % of failed/successful deployments of jenkins jobs. And the way jenkins is arranged complicates the task, each team or project is a folder name and inside the ...
0
votes
1answer
225 views

Pod's state “pod has unbound immediate PersistentVolumeClaims” when deploy Jenkins with Helm chart

I need your help. I try to deploy Jenkins in local Kubernetes cluster with Helm from repo stable/jenkins:lts. But after deployment I get pod which has status "pod has unbound immediate ...
1
vote
1answer
43 views

Deploy helm chart from Jenkins to Kubernetes

I want to deploy helm chart from Jenkins to Kubernetes but I don't find any Plugins in Jenkins for Helm. How can I tell Jenkins to run Helm chart in Kubernetes ?
0
votes
2answers
43 views

Transfer files and execute commands from jenkins scripted pipeline to AWS instance

I want to transfer files and execute a few commands on remote AWS instance from Jenkins. I have the following methods in mind to do the same. Note that my Jenkins server is running in the local server,...
0
votes
2answers
31 views

Jenkins: No Checkbox to“ Restart Jenkins when installation is complete”.Unable to restart Jenkins post plugin download

I have set up Jenkins version --Jenkins ver.2.155 post adding plugin, i need to restart Jenkins but "Restart Jenkins" tab or link not working.I dont find my [] checkbox to check/tic click on arrow is ...
0
votes
0answers
43 views

How to update nodejs on Jenkins master node

I am in the middle of trying to implement a build/deploy job in Jenkins by which the latest version of source code is pulled from git, built and then deployed to GCP. So far i am able to retrieve the ...
0
votes
3answers
33 views

Jenkins in private subnet

For development environment, to be used by multiple developers, we have a pipeline to be created with Git-Jenkins-Tomcat(dev) Do I need to place jenkins in private subnet and access thru bastion host?
1
vote
2answers
55 views

jenkins pipeline code to build docker images

I am trying to integrate docker build process in Jenkins. I know the things with docker plugin and configure docker agent and template to build it. I want these things to be done with Jenkins pipeline ...
0
votes
2answers
50 views

Automate creation of branch + pull-request

I have a repository (call it repo-X) of shell.nix files that define development environments for a number of separate projects (call them project-A, project-B). When one of the projects releases a ...
1
vote
2answers
31 views

Push Jenkins Build status to Github and Trigger Jenkins build from Github Webhook [closed]

FYI - New to DevOps. Please bear with me. Thanks I have a webhook created by Admin on Github Repo to trigger Jenkins build. I created a token from my Github(I am not admin on the repo) and used it in ...
0
votes
0answers
19 views

Use Google OAuth and AWS Cognito to send Jenkins api calls as auth'd user?

I've set up a webpage to require Google OAuth login via AWS Cognito so I can make AWS calls. I'd like the auth'd user to be able to also kick off a Jenkins job from the same webpage. Our Jenkins ...
0
votes
0answers
38 views

./mvnw -Pprod package command fails to download Maven

We have a new Jenkins-instance build from scratch as the old one started to have issues. While moving our pipelines we have encountered strange new error while trying to run a job for Maven project. ...
0
votes
0answers
53 views

What is the best method to start and stop an application?

I have some scripts to start and stop a java application which using jenkins. First option Check the port and kill pid if java is running. And then start the application. Second Option Write the ...
0
votes
0answers
24 views

Move artifacts files and folders to a one (release) folder

What is the best approach/ plugin to move multiple files and folders to a new release folder? (I'm using the Jenkinsfile pipeline) Case: The next files/ folders need to be available in the release ...
0
votes
0answers
35 views

After pushing to registry Jenkin's settings are reset

I want to download Jenkins image from repository, configure it and push it to docker registry. But, when I push it to registry no changes are applied. I do following: docker pull jenkins/jenkins ...
0
votes
0answers
15 views

How do I get Jenkins to work in a Docker container without modifying a directory on the Docker host?

I am using RHEL 7.x in AWS. I have Docker 1.13 installed. I checked a variety of ports and no firewall (or Security Group) seems to be blocking network connectivity on the EC-2 host. I tried this ...
0
votes
0answers
32 views

Jenkins | How to trim (or preferably customise) the console output content that is sent as email content post execution of a build?

I have configured email notification on my jenkins build which triggers email post every build to recipients with the console output content as the email content. Currently it looks something like ...
1
vote
1answer
61 views

Jenkins Pipeline steps that run before Jenkinsfile

I'm just starting to get my toes wet with Jenkins and CI/CD. I've built a set of static analysis tools and corresponding configurations I want to run before a branch's Jenkinsfile is even considered. ...
0
votes
1answer
38 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 ...
2
votes
1answer
51 views

Run scripts which are stored in GitLab from Jenkins

I have configured Jenkins Build Jobs and Deployment Jobs from using Jenkins shell. But I put all the commands in Shell to execute. Can I store those commands in GitLab and execute from jenkins?
0
votes
0answers
48 views

Background process not running after executing shell script

When I execute below script from cli it is working and process in background also running. But when i try to execute the same wcript from ansible all the tasks are successfully executing but ...
1
vote
1answer
92 views

Groovy script to show only selected item

I used jenkins Active choices plugin and Mavenmetadata plugin to build above UI. When I click a radio button particular version only should be display. How can I write a groovy script to fulfill above ...