fabric8io/fabric8-pipeline-library

Remove mutiple ways to get github token

Opened this issue · 0 comments

I find that there are two ways to fetch github token in the pipeline library

  1. withCredentials to lookup cd-github see:
    withCredentials([usernamePassword(credentialsId: 'cd-github', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
  2. Fabric8Command.getGitHubToken which uses a different mechanism. See:

Lets ensure there is only one way to do this.