Skip to content

Commit 630359d

Browse files
committed
ci: testing packages stages first tries to run offline
1 parent 81de872 commit 630359d

1 file changed

Lines changed: 14 additions & 21 deletions

File tree

Jenkinsfile

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,21 @@ def mac_wheels(pythonVersions, testPackages, params, wheelStashes){
6666
stage(newArchStage){
6767
if(selectedArches.contains(arch)){
6868
stage("Build Wheel (${pythonVersion} MacOS ${arch})"){
69-
buildPythonPkg(
70-
agent: [
71-
label: "mac && python3 && ${arch}",
72-
],
73-
retries: 3,
74-
buildCmd: {
75-
checkout scm
76-
sh(label: 'Building wheel',
77-
script: "sh ./scripts/build_mac_wheel.sh ${pythonVersion}"
78-
)
79-
},
80-
post:[
81-
cleanup: {
82-
sh "${tool(name: 'Default', type: 'git')} clean -dfx"
83-
},
84-
success: {
85-
stash includes: 'dist/*.whl', name: "python${pythonVersion} mac ${arch} wheel"
86-
wheelStashes << "python${pythonVersion} mac ${arch} wheel"
87-
archiveArtifacts artifacts: 'dist/*.whl'
69+
node("mac && python3 && ${arch}"){
70+
checkout scm
71+
try{
72+
retry(3){
73+
sh(label: 'Building wheel',
74+
script: "sh ./scripts/build_mac_wheel.sh ${pythonVersion}"
75+
)
8876
}
89-
]
90-
)
77+
stash includes: 'dist/*.whl', name: "python${pythonVersion} mac ${arch} wheel"
78+
wheelStashes << "python${pythonVersion} mac ${arch} wheel"
79+
archiveArtifacts artifacts: 'dist/*.whl'
80+
} finally {
81+
sh "${tool(name: 'Default', type: 'git')} clean -dfx"
82+
}
83+
}
9184
}
9285
def testSingleArchWheelStageName = "Test Wheel (${pythonVersion} MacOS ${arch})"
9386
stage(testSingleArchWheelStageName){

0 commit comments

Comments
 (0)