Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

It is built in Java and has many plugins to support,build and test projects.

More info on the official website.

654 questions
0
votes
0 answers

How to run the following commands on the master node before executing any pipeline in Jenkins. can't find any option to run pre build step

How to run the following commands on the master node before executing any pipeline in Jenkins. can't find any option to run pre build step. docker system prune --all docker volume prune
Nishanth
  • 83
  • 3
  • 8
0
votes
0 answers

How to build a docker image using kuberntes agent?

Below is the configuration in kubernetes plugin I set. My jenkins pipeline. pipeline { agent { kubernetes { label 'my-docker-build' defaultContainer 'jnlp' yaml """ apiVersion: v1 …
user2331760
  • 155
  • 4
  • 12
0
votes
0 answers

How to build a docker image from jenkins agent running on kubernetes?

I tried below pipeline code to check whether docker commands work first but failing. pipeline { agent { kubernetes { yaml """ apiVersion: v1 kind: Pod metadata: labels: app: jenkins-agent spec: …
user2331760
  • 155
  • 4
  • 12
0
votes
0 answers

The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing

I created a jenkins free style job I inserted my github repo, Installed maven on the server, When I run the job I get error: The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing but my pom is on the repo when jenkins is…
Samson
  • 113
  • 5
0
votes
1 answer

How to protect Jenkins from super users?

Any super user who has access to the Jenkins running on a Linux server can easily disable security authentication from config.xml file; then log in and can also decrypt sensitive passwords from console. How can an application developer protect…
bsd-boo
0
votes
1 answer

poetry command not found after installing it on jenkins

I'm using Jenkins to build a python package using poetry, here is the stage command to install poetry on the Jenkinsfile stage('poetry'){ steps { sh 'curl -sSL https://install.python-poetry.org | python3' sh 'export…
veey
  • 1
0
votes
1 answer

Deploying helm chart of jenkins giving error as invalid image name, even it is correct. How to fix that?

Deploying helm chart of jenkins giving error as invalid image name, even it is correct. How to fix that? kubectl get po -n jenkins NAME READY STATUS RESTARTS AGE jenkins-0 0/2 Init:InvalidImageName 0 …
sardar
  • 1
  • 2
0
votes
0 answers

How do I use SVN+SSH with a custom port and externals on Jenkins

We use SVN with SSH because it is better than anonymous access and the HTTP setup looked complicated and difficult to use when I was setting up authenticated SVN. Subversion uses a custom port because it is running in a docker image and we use the…
AlastairG
  • 348
  • 3
  • 15
0
votes
0 answers

jenkins multibranch - why jenkinsfile checkout only main

I have seen a multibranch example : https://devopscube.com/jenkins-multibranch-pipeline-tutorial/?unapproved=49471&moderation-hash=53d25ad46b16419cf56ed585dbf9d693#comment-49471 Why the jenkinsfile checkout only the main branch? I would expect that…
0
votes
0 answers

Jenkinsfile - Build only if change in a specific subdirectory, how to manage post action

Basically, we're doing trunk development here, and got tons of services under the same directory. I have a Jenkins job that is triggered through GitHub webhook, and that will do some actions only if there's a change in a specific directory of that…
SBO
  • 544
  • 1
  • 5
  • 12
0
votes
0 answers

How to configure jenkins to a subdomain url?

I am trying to configure jenkins to an existing ALB by creating a target group(instance type) and rule. In the rule I kept like this. dev.companyname.com/jenkins But when I click on the url, it is redirecting to…
user2331760
  • 155
  • 4
  • 12
0
votes
1 answer

Jenkins groovy Pipline code is stop working with Docker Build steps

Jenkins was working fine after update stopped working and I roll back manually from latest version to previous and remove the plugins from Plugin Folder and install again as per the requirements: Jenkins Version: 2.346.2 Note: Jenkins is running on…
0
votes
0 answers

Debugging Jenkins pipelines and shared library

We are using both scripted and declarative pipelines. In CI flow we are using Jenkinsfile and in some other flows we are using Jenkins GUI pipelines which triggers different functionality from shared library. Our shared library is divided to vars…
ssb
  • 1
0
votes
0 answers

Is there anyway i can build iOS app using Jenkins without using MAC machine (even without using slave MAC mechine)

In our organisation, we have Jenkins master server running on Linux, and able to build the Android apps and deploy it to app store. But how to use the same Jenkins server to build the pipeline for the ios app without using any MAC mechine. What i…
0
votes
0 answers

Why did the SSH API of my Jenkins instance get so slow?

Accessing my Jenkins 2.319.1 instance via SSH get very slow a few days ago. I don't know what changed. To narrow it down: Accessing Jenkins via HTTPS API is OK. The performance of the Web API is OK, too. $ java -jar jenkins-cli.jar -s…
hagello
  • 101
  • 1
  • 4