Issue
Currently, it is not possible to automatically trigger a refresh of the Pipeline Template Catalog (PTC) in CloudBees CI using a webhook. This limitation prevents automated updates to the pipeline template catalog based solely on changes in the template catalog.
Resolution
Although webhooks cannot be used to refresh the PTC, it is still possible to update your Pipeline Template definitions programmatically using a direct API call. The following curl command allows you to trigger the import process manually:
curl -X POST -u $ADMIN_USER:$API_TOKEN $CLOUDBEES-CI_URL/pipeline-template-catalogs/catalog/$CATALOG_NAME/runImport
where:
$ADMIN_USER: Your CloudBees CI user with admin permissions. $API_TOKEN: The API token for authentication (can be generated in CloudBees CI user settings). $CLOUDBEES-CI_URL: The base URL of your CloudBees CI instance. $CATALOG_NAME: The name of the catalog you want to update.