skip to Main Content

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/ && wget https://raw.githubusercontent.com/mishraatharva/textsummarization/main/docker-compose.yml && export IMAGE_NAME=${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/textsum:latest && aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com && docker compose up -d '
Shell Script
1.6 sec
+ ssh -o StrictHostKeyChecking=no -l ubuntu 3.226.221.21 cd /home/ubuntu/ && wget https://raw.githubusercontent.com/mishraatharva/textsummarization/main/docker-compose.yml && export IMAGE_NAME=****:latest && aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ****.dkr.ecr.us-east-1.amazonaws.com && docker compose up -d 
--2024-08-18 19:19:08--  https://raw.githubusercontent.com/mishraatharva/textsummarization/main/docker-compose.yml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 95 [text/plain]
Saving to: ‘docker-compose.yml.10’
     0K                                                       100% 3.77M=0s
2024-08-18 19:19:08 (3.77 MB/s) - ‘docker-compose.yml.10’ saved [95/95]
WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores
Login Succeeded
yaml: line 229: mapping values are not allowed in this context
script returned exit code 15
Jenkins 2.462.1

I don’t have any clue for solving this issue:
I am sharing my github repo containing jenkins file.
https://github.com/mishraatharva/textsummarization

How to resolve this?

2

Answers


    • Your error does look like a syntax error in one of your yaml files.

    • Make you sure they are correct using your IDE linter/formatter or
      using tnis website: https://www.yamllint.com/ .

    Login or Signup to reply.
  1. @naruto007 Check line 229 in your yaml to see if syntax is correct. Use the link YassineLbk put in above to validate the yaml file(s).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search