Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2135d6f

Browse files
committed
Use system Python installs in Jenkinsfile.
1 parent bb7cdb5 commit 2135d6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ def setupPythonAndTest(pythonVersion, testSuite) {
3333
withEnv(getEnvForSuite("${testSuite}")) {
3434
try {
3535
sh """
36-
virtualenv tmp -p /usr/local/lib/python${pythonVersion}/bin/${pythonVersion.startsWith('3') ? "python3" : "python"}
36+
virtualenv tmp -p ${pythonVersion.startsWith('3') ? "python3" : "python"}
3737
. ./tmp/bin/activate
38+
python --version
3839
pip install -r requirements.txt
3940
pip install -r test-requirements.txt
4041
${'simplejson'.equals(testSuite) ? 'pip install simplejson' : ''}
@@ -60,8 +61,8 @@ stage('Checkout'){
6061
}
6162

6263
stage('Test'){
63-
def py2 = '2.7.12'
64-
def py3 = '3.5.2'
64+
def py2 = '2'
65+
def py3 = '3'
6566
def axes = [:]
6667
[py2, py3].each { version ->
6768
['basic','cookie','iam'].each { auth ->

0 commit comments

Comments
 (0)