Skip to content

Added custom jobs cannot be removed #1829

@mazhelez

Description

@mazhelez

Discussed in #1809

Originally posted by OleWunschmann July 4, 2025
We have a customized template for COSMO Alpaca:
https://github.com/cosmoconsult/Alpaca-PTE
We rely on the features for custom templates introduces with the pull request #853

We added some customizations in the form of "CustomJob-..." to some workflows (e.g. CICD.yaml)
But now we can not remove these custom jobs or rather the removal is not passed correctly to repositories using this template.

If I understand the custom template feature correctly, a template is encouraged to use custom jobs so that updating the template - with workflow "Update AL-Go System Files" - retains those jobs.
But this results in the mentionend problem for the final repository because removed custom jobs are re-added as custom jobs from the final repository.

Repro:

  • Custom template using custom jobs
  • Repository using the template
  • Removing a custom job from the template
  • Updating repository using the template
  • Repository still contains the removed custom job

A similar problem occurs on renaming a custom job:
The "new" custom job is added but the "old" custom job is also retained in the final repository.

Is there a solution to this problem without having to manually remove the custom jobs from each repository?

Internal work item: AB#592506

Metadata

Metadata

Labels

Fix ReadyFix ReadyShippedFeature is included in the latest versionacceptedThe issue has been acceptedbugSomething isn't working

Type

No type

Projects

Status

✅ Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions