Skip to content

Commit 995a4bb

Browse files
committed
Fix create milestone jenkinsfile
1 parent a211c5e commit 995a4bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

testrail/Jenkinsfile.create-milestone

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}
@@ -75,7 +79,7 @@ EOF
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'

0 commit comments

Comments
 (0)