databrickslabs / cicd-templates

Manage your Databricks deployments and CI with code.
Other
201 stars 100 forks source link

GitLab CI/CD Pipeline fails due to incorrect job name #76

Closed adamkuch-db closed 3 years ago

adamkuch-db commented 3 years ago

When using GitLab as the CI/CD tool, the Gitlab Pipeline fails when deploying Databricks jobs. I believe this is because .gitlab-ci.yml uses {project_name} instead of {{cookiecutter.project_name}} in the deploy and launch commands.

renardeinside commented 3 years ago

hi @adamkuch-db , could you please provide a link with an example failing pipeline?

adamkuch-db commented 3 years ago

Hi @renardeinside Here is an example project created with cicd-templates. You can see in .gitlab-ci.yml, the project name was not properly configured through cookiecutter: https://gitlab.com/adam.kuchinski/cicd-sample-project

And here is one where I made the edits to the .yml to fix the job names and it worked: https://gitlab.com/adam.kuchinski/cicd-sample-cs

renardeinside commented 3 years ago

thanks for pointing this out @adamkuch-db , I'll provide a fix for that

renardeinside commented 3 years ago

closed in #77 . thanks a lo for pointing this out @adamkuch-db