I’m facing a issue with using trigger key word for parent child pipelines. I’m using gitlab free EE is that the reason to fail the pipeline with bellow error?
error:
jobs stage config should implement a script: or a trigger: keyword*
It’s hard to tell what’s happening here, but it would help if you could format your YAML snippet as a code block (use the </> button in the text editor).
I think you want something like this, but you will probably need to play around with this a little further:
sorry forgot to format the code before, this is the formatted code. I’m getting error jobs stage config should implement a script: or a trigger: keyword * but in that stage we have trigger key word.
The child pipeline docs say that parent-child pipelines are available in all tiers, so I don’t think the issue is that you are using the free plan. Also, that snippet passes the lint for me.
Is it possible to post your full .gitlab-ci.yml file?
I’ve been facing a similar issue having this message:
* jobs artifacts config should implement a script: or a trigger: keyword
From that, I’ve realized a bad indentation for the “artifacts” item in a job - very complicated to find this kind of errors, I think Gitlab message should explicit the line number - then it would be easier to find it.
So, in your case,
** jobs stage config should implement a script: or a trigger: keyword
means that your job called “stage” is wrong. In your terraform_plan_template.yml, you’ve mistyped “stages” by writing “stage” - Gitlab thinks it is a job, and that’s why you are having the issue.
Again, I still think the error message is very misleading, it should either print the line number OR at least put the ‘stage’ word inside quotes.