Jenkins: Can't send zip archive via email
问题 I want to fetch project source code from GitLab, archive it and send it via email. Jenkinsfile: def gitlabRepo = 'http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git' deleteDir() dir('koshcheck-copy') { stage 'Fetch' def curdir = pwd() echo curdir git url: "${gitlabRepo}", branch: 'master' stage 'Archive' zip archive: true, dir: './src', glob: '', zipFile: 'src.zip' def savedZip = archive 'src.zip' echo savedZip stage 'Notify' emailext ( to: 'roman.skaskevich@gmail.com',