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
1answer
129 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
72 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
2answers
694 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. ...
2
votes
2answers
7k 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") { ...
1
vote
0answers
15 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 ...
3
votes
1answer
4k 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
61 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
42 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 ...
6
votes
3answers
129 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 ...
0
votes
0answers
79 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 ...
1
vote
0answers
79 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
1answer
105 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
70 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
47 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
104 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
4k 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 ...
0
votes
1answer
2k 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
582 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
254 views

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

I have set up Jenkins version (ver. 2.155). post adding plugin, i need to restart Jenkins but "Restart Jenkins" tab or link not working. I don't find my [] checkbox to check/tic click on arrow is not ...
0
votes
0answers
339 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
228 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
329 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
88 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
44 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
121 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
173 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
62 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
46 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
48 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
23 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
281 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
165 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
60 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 ...
3
votes
1answer
436 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
295 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
833 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 ...
0
votes
0answers
282 views

curl: (6) Could not resolve host error from Gitlab Runner

I'm trying to trigger jenkins job after deploying a pipeline; I've added this part in .gitlab-ci.yml but I got below error when running the job in the after_script section "curl: (6) Could not ...
0
votes
0answers
19 views

How to spawn on-demand cloud batches with GitLab similar to Jenkins EC2 plugin?

While you need your build agents/slaves just to execute a build, infrastructure as code allows you to get disposable build/test machines which thus require zero maintenance on demand. For example, if ...
0
votes
1answer
2k views

Deploy war/ear to a container' marked build as failure

I have Jenkins installed in my system, on which the following are installed: Maven Integration Plugin Deploy to Container Plugin Ant Plugin Copy Artifact Plugin GitHub plugin GitHub Branch Source ...
1
vote
2answers
89 views

How to trigger Jenkins job by deploying git pipline using webhook?

I have a Jenkins job which I want to trigger after deploying pipeline in Gitlab, Is this possible with webhooks or some other way?
0
votes
1answer
42 views

Push specific changes (defect fix) and not feature changes

I am new to DevOps. I am using Jenkins and GitHub for salesforce deployment. Setup We have a develop branch. Feature branches are created out of it. When merged to develop, the deployment to the ...
0
votes
1answer
335 views

packge.json not found while executing on Jenkins

My Dockerfile looks something like this. FROM mhart/alpine-node:8.11.3 RUN mkdir -p /app COPY ./ /app WORKDIR /app/build RUN yarn global add serve CMD ["serve", "-l", "3000"] EXPOSE 3000 And ...
1
vote
2answers
416 views

How to make a Jenkins API call when using “Log in with Google” as security?

Jenkins API calls are generally made using a username/password combination, or other set of credentials. We have a Jenkins instance using "Log in with Google" authentication, meaning no credentials ...
0
votes
0answers
117 views

Jenkins Code Coverage (Cobertura) overview display

I have a Matrix build A which produces a coverage.xml in cobertura format in one of its child builds, A1. I want to see an overview of the code coverage in the Dashboard View that includes build A and ...
0
votes
0answers
31 views

Configure Jenkins to take Artifact and Deploy Server Information

I have configured Frontend and Backend of a project in Jenkins. Frontend using npm and Backend using maven as build tools. For repository management nexus has been configured. Now I want to do the ...
0
votes
1answer
325 views

Jenkins poll scm issue- Multiple jobs configured in single repo

We configured multiple jobs in single repo and enabled poll scm. The build is not triggerring whenever checkins happened. Let me know is it possible that poll scm will work for multiple jobs in ...
1
vote
1answer
346 views

How to use Jenkins github user credentials to access github api in my script?

I have a Jenkins job foo that works perfectly well. It is authenticated with jenkins_foo_user. It is able to clone the repo and checkout the right branch. In my codebase, I have another script - ...
0
votes
0answers
233 views

trigger a build on a specific branch when a branch is deleted?

Using multibranch pipelines with webhooks. When I delete a branch my jenkins projects immediately update and prune the branch. This is great but could I trigger a build of master branch when another ...
0
votes
1answer
625 views

Jenkins Pipeline project can't when on branch

I want to use when on branch condition. The Jenkinsfile is like this stages{ stage('Checkout project branch master'){ steps{ withCredentials([...
6
votes
2answers
2k views

How to make Jenkinsfile credential visible to many stages

In Jenkinsfile, I want to make an ssh key visible to all stages in the pipeline. From the official document, I learned that: environment directive is used to defy environment variables for used ...