diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-08 21:21:07 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-08 21:21:07 +0800 |
commit | afada8b93d27cdad77a94215c12483f690157d23 (patch) | |
tree | fbee752ea74f227bc889675a5c59b332d201bf10 | |
parent | 659b777419991b1f583964b60067a6c119f0a5fd (diff) |
Jenkinsfile: change directory to the folder where test scripts reside.
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 5e2b037..33f8d53 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { sh 'sudo docker run -d -p 4444:4444 selenium/standalone-chrome' sh 'pip3 install pytest -U -q' sh 'pip3 install selenium -U -q' - sh 'pytest ./app/test' + sh 'cd ./app/test && pytest && cd -' } } stage('DeployIt') { |