GitLab Credentials - Kubernetes Integration

gitlab-kubernetes-credentials-plugin

Build Status Coverage LOC Jenkins Plugin GitHub release GitHub license Jenkins Plugin Installs

Introduction

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.

Usage

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.

Example

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

LICENSE

Licensed under MIT, see LICENSE