I keep getting this error: "No signature of method: zip.call()"
This is the code i am running in Jenkins pipeline :
pipeline {
agent any
stages {
stage("test..")
{
steps
{
zip dir: '', glob: '', zipFile: 'testz.zip'
}
}
}
}
I have the zip step appear in sample steps in pipeline syntax, so not sure why this failing. I need to zip my source code folder.