diff options
author | Matt Mitchell <mmitche@microsoft.com> | 2017-02-18 03:43:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-18 03:43:55 +0300 |
commit | 7537b5b28c1522c75d9eeb8d43145bed5f9d5556 (patch) | |
tree | 68a8b1c992021fe9fe59413247dd308d8529840b /netci.groovy | |
parent | 31cb598e14f543be608a05f0c959abc40b5323e3 (diff) |
Add /usr/local/bin to PATH (#16280)
Add /usr/local/bin to PATH
Add the /usr/local/bin to the PATH so as to ensure cmake is on the PATH in sudo run outerloop tests
Diffstat (limited to 'netci.groovy')
-rw-r--r-- | netci.groovy | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/netci.groovy b/netci.groovy index e4ce6562c2..264320d4a0 100644 --- a/netci.groovy +++ b/netci.groovy @@ -229,6 +229,12 @@ def buildArchConfiguration = ['Debug': 'x86', shell("HOME=\$WORKSPACE/tempHome ./build.sh -${configurationGroup.toLowerCase()}") shell("HOME=\$WORKSPACE/tempHome ./build-tests.sh -${configurationGroup.toLowerCase()} -outerloop -- /p:IsCIBuild=true") } + else if (osName == 'CentOS7.1') { + // On Centos7.1, the cmake toolset is currently installed in /usr/local/bin (it was built manually). When + // running sudo, that will be typically eliminated from the PATH, so let's add it back in. + shell("sudo PATH=\$PATH:/usr/local/bin HOME=\$WORKSPACE/tempHome ./build.sh -${configurationGroup.toLowerCase()}") + shell("sudo PATH=\$PATH:/usr/local/bin HOME=\$WORKSPACE/tempHome ./build-tests.sh -${configurationGroup.toLowerCase()} -outerloop -- /p:IsCIBuild=true") + } else { def portableLinux = (osName == 'PortableLinux') ? '-portableLinux' : '' shell("sudo HOME=\$WORKSPACE/tempHome ./build.sh -${configurationGroup.toLowerCase()} ${portableLinux}") |