-
New Feature
-
Resolution: Unresolved
-
Critical
-
None
Giteea is on the way to use token except of credentials.
So I need to get token from Gitea API token credential with withCredentials, but getting the error:
ERROR: Credentials 'gitea-api-token' is of type 'Gitea Personal Access Token' where 'org.jenkinsci.plugins.plaincredentials.StringCredentials' was expected
My pipeline is (test pipeline):
node { withCredentials([string(credentialsId: 'gitea-api-token', variable: 'TOKEN')]) { sh('''#!/bin/bash -xe echo hello ''') } }