Unable to parse YAML

Hi there,

i’m new to circleci.
I want to compile a latex file after pushing:

I use this orb and the yml-file located on this page:
https://hub.docker.com/r/koppor/texlive/
Now i want to save the produced pdf file, but how?

I tried to add (after run…):
- store_artifacts:
path: ./nameOfTexFile.pdf

Then the build will allways fail: “Unable to parse YAML”.
Can anybody help me?

Best regards,
Tobias

Hi @tobias - would you be able to provide your config file?

1 Like

Of course:

version: 2

jobs:
   build:
       docker:
             - image: koppor/texlive
    working_directory: /tmp
    steps:
      - checkout
      - run:
          command: latexmk se_ss20_test.tex

       - store_artifacts:
           path: /tmp

I tried something else and added a work directory but getting the same error.

Hi Tobias,

The issue is that the docker key needs to aligned on the same column as working_directory and steps, like this:

version: 2.1

jobs:
  build:
    docker:
      - image: koppor/texlive
    working_directory: /tmp
    steps:
      - checkout
      - run:
          command: latexmk se_ss20_test.tex
      - store_artifacts:
          path: /tmp

Also, I’d recommend using confg version 2.1 – it will give much better error messages and catch more problems (it’s more strict).

1 Like

Hi Marc,
thank you!
Tried so much yesterday and at the end it still didn’t work.

Best regards,
Tobias

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.