goCD Yaml plugin doesn't pick-up code

107 views
Skip to first unread message

vv-fork

unread,
Oct 27, 2023, 1:27:53 AM10/27/23
to go-cd
Greetings colleagues,

I am trying to get into Yaml plugin (gocd-yaml-config-plugin.jar v.0.14.3-321) with goCD v.23.3.0. 

The plugin is able to receive the yaml file but always throws the same error. 

I am stuck with something pretty simple, like this:
format_version: 10

pipelines:
  mypipe:
    group: mygroup
    materials:
      mygit:
        git: http://example.com/mygit.git
    stages:
      - build:
          jobs:
            build:
              tasks:
               - exec:
                   command: make

environments:

The message is:
INVALID MERGED CONFIGURATION Number of errors: 1+ I. Rule Validation Errors: 1. Not allowed to refer to pipeline group 'mygroup'. Check the 'Rules' of this config repository. II. Config Validation Errors: - For Config Repo: https://github.com/...p at revision 03a639fd6444>>>74d5

What am I doing wrong?

Vlad.

Chad Wilson

unread,
Oct 27, 2023, 1:32:13 AM10/27/23
to go...@googlegroups.com
As the error mentions please "Check the 'Rules' of this config repository" - by default your config repo won't have rules/permissions to define pipelines in any pipeline groups, environments etc. It is "secure by default". You'll want to add a permission to do so.

e.g a blanket permission to allow a config repo to affect any environment or pipeline group looked like: You can click the "learn more" link from the config repo edit to read more about these rules.

image.png
-Chad

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/01c04e91-0322-45fa-9021-58dd90424b80n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages