Code Review
/
ci-management.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4b64bb8
)
Sweetcomb: container build detection
15/17615/1
author
Ed Kern
<ejk@cisco.com>
Thu, 14 Feb 2019 17:26:07 +0000
(10:26 -0700)
committer
Ed Kern
<ejk@cisco.com>
Thu, 14 Feb 2019 17:26:07 +0000
(10:26 -0700)
Always true line added to assist with build server device
detection
Change-Id: Ibe283c2a02ba88a588901c94a2b6bdbfc188b061
Signed-off-by: Ed Kern <ejk@cisco.com>
jjb/sweetcomb/include-raw-sweetcomb-build.sh
patch
|
blob
|
history
diff --git
a/jjb/sweetcomb/include-raw-sweetcomb-build.sh
b/jjb/sweetcomb/include-raw-sweetcomb-build.sh
index
8f12a9d
..
b03b0ef
100644
(file)
--- a/
jjb/sweetcomb/include-raw-sweetcomb-build.sh
+++ b/
jjb/sweetcomb/include-raw-sweetcomb-build.sh
@@
-2,6
+2,9
@@
# basic build script example
set -xe -o pipefail
+##container server node detection
+grep search /etc/resolv.conf || true
+
OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')