Correct build node name for ric-plt/alarm-go
[ci-management.git] / jjb / ric-plt-alarm-go / build-alarm-go-ubuntu.sh
1 #!/bin/bash
2 # Installs NNG then run a build script in the repository
3 # Assumes ubuntu - uses apt-get
4
5 echo "--> build-alarm-go-ubuntu.sh"
6
7 echo "Install packages"
8 sudo apt-get install -y cmake ninja-build
9
10 # NNG repo is not frequently tagged so it's pinned to a commit hash.
11 # This commit provides fix to the proxy-reconnect
12 # bug that we identified:  https://github.com/nanomsg/nng/issues/970
13 echo "Clone and build NNG"
14 git clone https://github.com/nanomsg/nng.git
15 (cd nng \
16     && git checkout e618abf8f3db2a94269a79c8901a51148d48fcc2 \
17     && mkdir build \
18     && cd build \
19     && cmake3 -DBUILD_SHARED_LIBS=1 -G Ninja .. \
20     && ninja-build \
21     && sudo ninja-build install)
22
23 cmd="./adapter/build_adapter.sh"
24 echo "INFO: invoking build script: $cmd"
25 $cmd
26
27 echo "--> build-alarm-go-ubuntu.sh ends"