my pipeline keeps failing with the error:
Snyk failed to scan your project. Snyk API token with Credential ID ‘APITOKEN’ was not found.
I have checked the plugin, the token, the credentials all seem fine. where could the issue be? here is the Jenkinsfile in use:
pipeline {
agent any
stages {
stage(‘Build’) {
steps {
echo “Built stage 1”
}
}
stage(‘Test’) {
steps {
echo ‘Testing…’
snykSecurity(
snykInstallation: ‘Snykinstall’,
snykTokenId: ‘APITOKEN’,
)
}
}
stage(‘Deploy’) {
steps {
echo “Deploying Stage”
}
}
}
}