-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
team,
currently github app credentials are accessed using usernamepassword method.
This lacks the owner role provided by credentials of type GitHub app.
In GitHub where we have multiple organizations and using same Jenkins to access multiple orgs we need to set up same credentials with multiple names specifying different owners. it would be better to have a owner variable while calling we can pass value at runtime.
i saw couple of tickets opened long back hasn't fixed the issue yet. it would be helpful to have this feature
withCredentials([usernamePassword(credentialsId: 'github-creds', \{*}'ownervariable': 'your github org name here'{*},usernameVariable: 'github-appid', passwordVariable: 'github-token')])
{ // your block here }