My question: I am getting an error while executing collection in Jenkins Pipeline, I am using Mac intel machine
Details (like screenshots):
Below is the pipeline script which has been generated from Postman, few things I have updated as required:
pipeline {
agent anytools {nodejs “Node1”}
stages {
stage(‘Install Postman CLI’) {
steps {
sh ‘curl -o- “https://dl-cli.pstmn.io/install/osx_64.sh” | sh’
}
}
stage(‘Postman CLI Login’) {
steps {
sh ‘postman login --with-api-key PMAK-6031-2d4302912’
}
}
stage(‘Running collection’) {
steps {
sh ‘postman collection run “2219022-2501447e-c8” -e “221902ad-9e0b-cd0dd289edd1”’
}
}
}
}
Above Script has been generated from Postman CLI Configuration, see the below snapshot
See the below Jenkins logs error