Jenkinsfile

pipeline {
   agent { docker { image 'aquichita/playwright-python-poetry-allure:v1' } }
   stages {
     stage('api-tests') {
         steps {
            echo 'api-tests'
         }
      }
      stage('e2e-tests') {
         steps {
            sh 'poetry install'
            sh 'poetry update'
            // sh 'poetry run playwright install chrome'
            sh 'poetry run pytest --alluredir=allure-results'
         }
      }
   }
   post {
      success {
        allure includeProperties: false, jdk: '', results: [[path: 'allure-results']]
      }
   }
}

报错信息:


↙↙↙阅读原文可查看相关链接,并与作者交流