1. 通过Jenkins Script 获取token
2. 在启动时将环境变量传递给postman test
#!groovy
timeout(time: 2, unit: 'HOURS') {
podTemplate(label: label,
containers:
[
containerTemplate(name: 'newman', image: '*****/cibuildslave/newman_html:newman_html_cms', privileged: false, command: 'cat', ttyEnabled: true, alwaysPullImage: true),
containerTemplate(name: 'python', image: '******/cibuildslave/python-http:python-http', privileged: false, command: 'cat', ttyEnabled: true, alwaysPullImage: true)
],
volumes: [emptyDirVolume(mountPath: '/home/jenkins', memory: true)],
imagePullSecrets: [