官方地址:https://github.com/jenkinsci/aqua-microscanner-plugin
Step1
在jenkins安装"Aqua MicroScanner"插件
Step2
系统设置配置token,token获取地址:https://microscanner.aquasec.com/signup
Step3
Pipeline中添加扫描脚本
stage('Aqua MicroScanner'){ aquaMicroscanner imageName: 'xxx:latest',notCompliesCmd: 'exit 1',onDisallowed: 'fail' }
构建后结果展示