This plugin provides an extension for the kubernetes-credentials-provider-plugin plugin, and the gitlab-branch-source-plugin that extend the kubernetes credentials provider to create the special credential type required by the gitlab-branch-source when interacting with a GitLab server instance.
This plugin consumes extends the kubernetes-credentials-provider-plugin to consume kubernetes secrets with a "jenkins.io/credentials-type"
of "gitlabToken"
. These secrets need to have a data property "text"
that contains a base64 encoded bearer token
for gitlab server.
apiVersion: v1
data:
text: c3VwZXJkdXBlcnNlY3JldA==
kind: Secret
metadata:
annotations:
jenkins.io/credentials-description: The GitLab token for creating web hooks
labels:
jenkins.io/credentials-type: gitlabToken
name: gitlab-hook-token
namespace: jenkins-demo
type: Opaque
Licensed under MIT, see LICENSE