I am trying to sign the docker image using cosign in jenkins pipeline. I got this error
"cosign version
/home/jenkins/workspace/eVisl-import-dev-cicd@tmp/durable-63e86c1b/script.sh: line 1: cosign: command not found"
Jenkinsfile:
stage('sign the container image') {
steps {
sh 'cosign version'
sh 'cosign sign --key $COSIGN_PRIVATE_KEY hub.docker.com/hamzanasir6886/evsil-dev:latest-3'
}
}