File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pipeline {
1111 }
1212
1313 environment {
14- PATH = "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin:${env.PATH} "
14+ PATH = "/opt/homebrew/bin:/ usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
1515 TESTRAIL_HOST = credentials('testrail-host')
1616 // Slack webhooks for Python script notifications
1717 SLACK_MOBILE_TESTENG_RELEASE_CHANNEL = credentials('slack-mobile-testeng-webhook')
@@ -42,7 +42,11 @@ pipeline {
4242 stage('Install Dependencies') {
4343 steps {
4444 dir('testrail') {
45- sh 'pip3 install --no-cache-dir -r requirements.txt'
45+ sh '''
46+ set -e
47+ python3 -m venv .venv
48+ .venv/bin/pip install --no-cache-dir -r requirements.txt
49+ '''
4650 }
4751 }
4852 }
7579 steps {
7680 dir('testrail') {
7781 script {
78- def result = sh(script: 'python3 testrail_main_ios.py', returnStatus: true)
82+ def result = sh(script: '.venv/bin/ python3 testrail_main_ios.py', returnStatus: true)
7983 if (result == 0) {
8084 echo "✅ Milestone created successfully"
8185 env.MILESTONE_CREATED = 'true'
You can’t perform that action at this time.
0 commit comments