如何在硒测试中使用詹金斯的秘密

时间:2021-03-02 11:12:00

标签: selenium jenkins

我有 JenkinsFile。并且不知道如何将 Jenkins 的秘密调用到我的 selenium 测试中。

pipeline {
agent any
environment {
        token = credentials('1API')
}
stages {
    stage ('Chrome tests') {
        steps {
            withMaven(maven : 'maven_3.6.3') {
                bat 'mvn clean test -Dsurefire.suiteXmlFiles=suites/chrome-suite.xml'
            }
        }
    }
}

0 个答案:

没有答案