Category : jenkins

we want to build a backend, based on micronaut framework (java) with jenkins and docker. Locally all works fine. But not via jenkins/docker. ###Error message During the build of the image the follwing error occurs: Step 7/11 : COPY –from=build ./build/layers/libs /home/app/libs COPY failed: stat /var/lib/docker/overlay2/33b475c0bb868e9d61905995e0bd720a30cfde48e7e28acbb31a8a0d88474e24/merged/build/layers/libs: no such file or directory Dockerfile FROM gradle:7.2.0-jdk16 as ..

Read more

I have the following pipeline: pipeline { environment { registry = "my-docker" registryCredential = ‘dockerhubcredentials’ dockerImage = ” } agent any stages { stage(‘Cloning our Git’) { steps { git ‘my-git’ } } stage(‘Building Docker Image’) { steps { script { dockerImage = docker.build registry + ":$BUILD_NUMBER" } } } stage(‘Deploying Docker Image to Dockerhub’) ..

Read more

I’m investigating the ability to replace default production Jenkins server with docker Jenkins server. The main reason for this is to get the opportunity for fast deploying of other Jenkins servers in future saving all configuration etc. Do someone have experience in this activity? Does it even make sense to use a containerized Jenkins for ..

Read more

I’m looking to pass $options which is a string parameter in my JenkinsFile. Below is my JenkinsFile. I get this error when i run the pipeline: java.lang.NullPointerException: Cannot get property ‘$options’ on null object . What am i missing? pipeline{ agent { docker { image ‘babylon_ansible:latest’ args ‘-u root’ } } stages{ stage(‘ansible playbook’){ steps{ ..

Read more