What is wrong with this config?

circle.yml

#1

I’ve tried a few variations but I always get the same error:

Build-agent version 0.0.6347-92eac3d (2018-06-13T18:13:12+0000)
Configuration errors: 1 error occurred:

* Cannot find a job named `build` to run in the `jobs:` section of your configuration file.
If you expected a workflow to run, check your config contains a top-level key called 'workflows:'
---
version: 2
shared: &shared
  docker:
    - image: synocommunity/spksrc:latest
  working_directory: /spksrc
  steps:
    - checkout
    - run: PKG=${CIRCLE_TAG%-*}
    - run: make setup
    - run: cd spk/$PKG && make "$SYNOARCH"
    - run: ls packages/*.spk

jobs:
  x64-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-x64-6.1
  x64-5.2:
    <<: *shared
    environment:
      - SYNOARCH=arch-arch-x64-5.2
  88f6281-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-88f6281-6.1
  alpine-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-alpine-6.1
  armada370-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-armada370-6.1
  armada375-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-armada375-6.1
  armada38x-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-armada38x-6.1
  armadaxp-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-armadaxp-6.1
  comcerto2k-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-comcerto2k-6.1
  denverton-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-denverton-6.1
  evansport-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-evansport-6.1
  hi3535-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-hi3535-6.1
  ipq806x-1.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-ipq806x-1.1
  monaco-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-monaco-6.1
  northstarplus-1.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-northstarplus-1.1
  qoriq-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-qoriq-6.1
  rtd1296-6.1:
    <<: *shared
    environment:
      - SYNOARCH=arch-rtd1296-6.1
  ppc853x-5.2:
    <<: *shared
    environment:
      - SYNOARCH=arch-ppc853x-5.2

workflows:
  version: 2
  tagged-build:
    jobs:
      - x64-6.1:
          filters:
            branches:
              ignore: /.*/
      - x64-5.2:
          filters:
            branches:
              ignore: /.*/
      - 88f6281-6.1:
          filters:
            branches:
              ignore: /.*/
      - alpine-6.1:
          filters:
            branches:
              ignore: /.*/
      - armada370-6.1:
          filters:
            branches:
              ignore: /.*/
      - armada375-6.1:
          filters:
            branches:
              ignore: /.*/
      - armada38x-6.1:
          filters:
            branches:
              ignore: /.*/
      - armadaxp-6.1:
          filters:
            branches:
              ignore: /.*/
      - comcerto2k-6.1:
          filters:
            branches:
              ignore: /.*/
      - denverton-6.1:
          filters:
            branches:
              ignore: /.*/
      - evansport-6.1:
          filters:
            branches:
              ignore: /.*/
      - hi3535-6.1:
          filters:
            branches:
              ignore: /.*/
      - ipq806x-1.1:
          filters:
            branches:
              ignore: /.*/
      - monaco-6.1:
          filters:
            branches:
              ignore: /.*/
      - northstarplus-1.1:
          filters:
            branches:
              ignore: /.*/
      - qoriq-6.1:
          filters:
            branches:
              ignore: /.*/
      - rtd1296-6.1:
          filters:
            branches:
              ignore: /.*/
      - ppc853x-5.2:
          filters:
            branches:
              ignore: /.*/

#2

Are you trying to run this as a job? How are you starting it?


#3

Every job in your config has been configured not to run, so nothing is running. At least one job needs to be configured to run.


#4

Ah thanks so I guess I should have done the filters like this?

  filters:
    branches:
      ignore: /.*/
    tags:
      only: /.*/

#5

I’m trying to run the workflow on a tag. The tag is used to define the directory and project to build.


#6

If you’d want that Workflow to run for any tag then yes.


#7

Yes thanks, that is exactly what I wanted.


#8

@FelicianoTech Off topic but I’ve noticed something strange when a user opens a specific workflow in a new (private/incognito) tab they get a 404 error e.g. https://circleci.com/workflow-run/eea8d2c5-6f10-4d60-93fa-2f1f90f7a882 However if I open a job in a new (private/incognito) window e.g. https://circleci.com/gh/publicarray/spksrc/306 and than click on the link under Workflow: I get can get to the workflow page.

Why can’t I share the workflow as a link?


#9

I’m not sure. I’d suggesting creating a post on the “Bug Reports” category and seeing if this can be figured out.


#10

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