puzzle / jenkins-pipeline-shared-libraries

Shared functionality for Jenkins Pipeline Groovy scripts.
GNU General Public License v3.0
10 stars 13 forks source link

removed running on cluster case from lookupServiceAccountToken #50

Closed carlbalmer closed 2 years ago

carlbalmer commented 2 years ago

lookupServiceAccountToken included a case for when the jenkins master was running in the cluster

// Token is only needed when not running on Kubernetes cluster

This does not appy if you want to deploy to another cluster or the jenkins-master installaion does not have the cluster role.

closes https://gitlab.puzzle.ch/pitc-cicd/cicd-team-organisation/-/issues/146