Skip to content

Commit ad2366e

Browse files
author
Spenser Gilliland
committed
Merged in SIM-2981 (pull request apache#6)
SIM-2981 Approved-by: Jeffrey Uong <jeff@sima.ai>
2 parents fa25145 + c09ff11 commit ad2366e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Jenkinsfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def main() {
1010
name: 'SKIP_N2A_COMPILER_BUILD',
1111
description: 'Skips building n2a_compiler',
1212
defaultValue: false
13-
)
13+
),
14+
booleanParam(name: "PACKAGE_ONLY", defaultValue: false, description: 'Only package don\'t run tests')
1415
]),
1516
])
1617

@@ -34,12 +35,12 @@ def main() {
3435
utils.cmakeBuild("build", "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache", {}, { src_dir ->
3536
stage("Python Bindings") {
3637
dir("../python") {
37-
utils.setPythonBuildEnv([]) {
38+
utils.setPythonBuildEnv([], {
3839
sh """#!/bin/bash -ex
3940
rm -rf dist build
4041
python3 setup.py bdist_wheel
4142
"""
42-
}
43+
}, 'sima')
4344
}
4445
}
4546
}, "../sima-regres.cmake", "clean all")
@@ -59,7 +60,9 @@ python3 setup.py bdist_wheel
5960
}
6061

6162
stage("Upstream") {
62-
utils.buildUpstream("n2a_compiler", params.SKIP_N2A_COMPILER_BUILD, [])
63+
utils.buildUpstream("n2a_compiler", params.SKIP_N2A_COMPILER_BUILD, [
64+
booleanParam(name: 'PACKAGE_ONLY', value: params.PACKAGE_ONLY)
65+
])
6366
}
6467
}
6568

0 commit comments

Comments
 (0)