Skip to content

Gitlab "Automatic webhook creation" does not seem to work #762

@cbrown1234

Description

@cbrown1234

I've followed the instructions at https://github.com/mend/renovate-ce-ee/blob/ca71afdfcb0eab72ac7ce17a6886611121ca6465/docs/setup-for-gitlab.md#option-automatic-webhook-creation

However, I don't see any attempts to create the webhooks in the debug logs

The settings seem to be read correctly from environment variables, but no mention of webhook in the logs beyond this:

renovate-ce-1       | DEBUG: Resolved configuration
renovate-ce-1       |        "resolvedConfig": {
renovate-ce-1       |          "cronJobSchedulerAll": "25 * * * *",
renovate-ce-1       |          "licenseKey": "***********",
renovate-ce-1       |          "acceptTOS": "Y",
renovate-ce-1       |          "versionMismatchPrintInterval": 60,
renovate-ce-1       |          "debugMode": false,
renovate-ce-1       |          "dataHandlerType": "sqlite",
renovate-ce-1       |          "sqlTraceMode": false,
renovate-ce-1       |          "sqliteFilePath": "/db/renovate-db.sqlite",
renovate-ce-1       |          "sqliteVerbose": false,
renovate-ce-1       |          "sqliteExtensionsPaths": ["/usr/src/mend/resources/sqlite/uuid.so"],
renovate-ce-1       |          "serverHttpPort": "8080",
renovate-ce-1       |          "serverHttpDisabled": false,
renovate-ce-1       |          "serverHttpsPort": "8443",
renovate-ce-1       |          "serverRoleBasedAuthzControl": false,
renovate-ce-1       |          "userAgent": "mend-renovate",
renovate-ce-1       |          "syncMode": "bulk",
renovate-ce-1       |          "syncOnStartup": true,
renovate-ce-1       |          "serverApiRoot": "/api",
renovate-ce-1       |          "serverApiSecret": "***********",
renovate-ce-1       |          "apisEnabled": true,
renovate-ce-1       |          "systemApiEnabled": true,
renovate-ce-1       |          "jobsApiEnabled": true,
renovate-ce-1       |          "requestLoggerEnabled": true,
renovate-ce-1       |          "metricsEnabled": false,
renovate-ce-1       |          "cronAppSync": "0 0,4,8,12,16,20 * * *",
renovate-ce-1       |          "cronLibYearsRefresh": "50 * * * *",
renovate-ce-1       |          "reportingEnabled": true,
renovate-ce-1       |          "enqueueJobsOnStartup": "discovered",
renovate-ce-1       |          "webhookBaseBranches": ["master", "main", "develop"],
renovate-ce-1       |          "webhookBranchPrefixes": ["renovate/"],
renovate-ce-1       |          "webhookUrl": "https://renovate.<my hostname redacted>.com/webhook",
renovate-ce-1       |          "webhookName": "renovate",
renovate-ce-1       |          "webhookSkipDisabledRepoJobs": true,
renovate-ce-1       |          "adminToken": "***********",
renovate-ce-1       |          "logHistoryDir": "/logs",
renovate-ce-1       |          "logHistoryTTLDays": 30,
renovate-ce-1       |          "logHistoryCleanupCron": "0 0 * * *",
renovate-ce-1       |          "workerExecutionTimeout": 3600000,
renovate-ce-1       |          "workerHealthPort": "8080",
renovate-ce-1       |          "workerCleanup": "off",
renovate-ce-1       |          "workerCleanupDirs": [
renovate-ce-1       |            "/tmp/renovate/cache",
renovate-ce-1       |            "/tmp/renovate/repos",
renovate-ce-1       |            "/home/ubuntu"
renovate-ce-1       |          ],
renovate-ce-1       |          "diskUsageWarnThreshold": 70,
renovate-ce-1       |          "diskUsageFilters": ["/dev/**"],
renovate-ce-1       |          "maxInactiveCount": 0,
renovate-ce-1       |          "singleJobWorker": false,
renovate-ce-1       |          "kafkaTopicName": "mend-renovate-ee",
renovate-ce-1       |          "kafkaPartitionKeyCandidates": [],
renovate-ce-1       |          "platform": "gitlab",
renovate-ce-1       |          "enableHttp2": false,
renovate-ce-1       |          "disableGlobalAgent": false,
renovate-ce-1       |          "gitlabEndpoint": "https://gitlab.com/api/v4/",
renovate-ce-1       |          "gitlabPat": "***********",
renovate-ce-1       |          "gitlabWebhookSecret": "***********"
renovate-ce-1       |        }
...
renovate-ce-1       | DEBUG: Initializing webhooks handler
...

Image: ghcr.io/mend/renovate-ce:11.5.0

The webhook setup works fine if I manually create the webhook as described in the doc.

I have tested setups where:

  • gitlab PAT token is renovate user as maintainer (inherited from group) and no admin token is set
  • gitlab PAT token is renovate user as maintainer (inherited from group) and admin token is set as a token from the group owner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions