αƞjiβ February 2016

Safe guard API token for Jenkins Plugins

I am using Flowdock plugin in Jenkins. For this I need to give API token. right now I am hard coding my Flowdock API token as follow:

publishers {
   flowdock(FLOWDOCK_TOKEN) {
      failure()
      tags('tag1', 'tag2')
    }
}  

Is there a way to avoid having this hard coded token in the code? Any suggestion?

Answers


daspilker February 2016

The Job DSL wiki has a section about Handling Credentials, that mentions the Flowdock plugin in an example.

Post Status

Asked in February 2016
Viewed 1,917 times
Voted 10
Answered 1 times

Search




Leave an answer