how to read json data in groovy
Team, I am making a call to gerrit server and return is I believe json. From this I am trying to read fields but getting error in the first step itself. any hint? My call to gerrit and storing its…
Team, I am making a call to gerrit server and return is I believe json. From this I am trying to read fields but getting error in the first step itself. any hint? My call to gerrit and storing its…
I'm trying to create a Jenkins pipeline (.jenkinsfile) to perform some actions in AWS, but cannot give everyone in my company access to the pipeline. My thought was to have the user paste in their AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY values (these…
I am defining a pipeline using Jenkins. I am working on a text summarizer project and using jenkins for CICD. After triggering the pipeline,in CD stage I am getting error as below: ssh -o StrictHostKeyChecking=no -l ubuntu 3.226.221.21 'cd /home/ubuntu/…
I'm running a Docker container of Jenkins with Ansible in the same image. Ansible is updating another Docker container on the same Docker network. Useing an ssh key file. Tested using root user and user jenkins Both users tested. I…
I am writing a simple jenkins files to test, build and deploy angular application. but my jenkins pipeline is failing at sh 'npm install' Here is my jenkins pipeline script pipeline { agent any stages { stage('Checkout') { steps {…
I use Jenkins locally on Ubuntu 20.04. I have installed the following plugins: Docker plugin Docker pipeline I have added a new docker cloud: Manage Jenkins -> Clouds -> New cloud -> Docker I would like to pull docker images…
This is the jenkins file. The execution fails because the subnetid does not get its value in the second bat command to add subnet to storage account firewall. The complete scenario is that I am deploying infrastrucutre(one vm inside a…
I'm trying to set up a docker agent for this pipeline, but I'm getting this error when running one of the commands inside my pipeline: + poetry shell Spawning shell within /root/.cache/pypoetry/virtualenvs/python-project-template-nESIvdvh-py3.11 (25, 'Not a tty') From what I've looked…
Addendum to the question: I have now found out that for some reason the BUILD_TAG seems to be "faulty" ONLY for the docker-compose command. Also, it doesn't matter if the pipelines are running in parallel. The BUILD_TAG for the docker-compose…
We have multiple Jenkins ssh agents, multiple build containers with different jdk versions and containers use java to publish stuff (sonar results etc.) to other servers. The containers need to trust the same servers as the host machine (Jenkins ssh…