I’m trying to use Jenkins Pipelines for Continuous Delivery, but I can’t seem to get past the “no credential specified” error.
I followed this tutorial: https://www.youtube.com/watch?v=pts8zdHel5E
I’m using global credentials with a username and password.
Here is the Pipeline script:
pipeline {
agent any
stages {
stage ('Build') {
steps {
echo 'Building'
}
}
stage ('Test') {
steps {
echo 'Testing'
}
}
stage ('Deploy') {
steps {
echo 'Deploying'
}
}
}
}
I tried to build, but I got this error:
Other work items in Jenkins are not failing, while using the same credential. Only pipeline projects appear to be broken.
I’ve tried updating the credential binding plugins, deleting and creating the credential again, but nothing seems to work.
Issue
I’m having trouble using Jenkins Pipelines for Continuous Delivery. I’m getting a “no credential specified” error when I try to build, even though I’m using global credentials with a username and password.