File tree 10 files changed +81
-73
lines changed
10 files changed +81
-73
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ echo " Hello from bootstrap.sh"
4
+
5
+ TEST_SCRIPT=${TEST_SCRIPT}
6
+
7
+ SERVER_IP=$( cat $WORKSPACE /hosts | sed -n ' 1p' )
8
+
9
+ server_env=" export CENTOS_VERSION='${CENTOS_VERSION} '"
10
+ server_env+=" CENTOS_ARCH='${CENTOS_ARCH} '"
11
+ server_env+=" GERRIT_HOST='${GERRIT_HOST} '"
12
+ server_env+=" GERRIT_PROJECT='${GERRIT_PROJECT} '"
13
+ server_env+=" GERRIT_REFSPEC='${GERRIT_REFSPEC} '"
14
+
15
+ echo $server_env > $WORKSPACE /SERVER_ENV.txt
16
+
17
+ scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no " $WORKSPACE /SERVER_ENV.txt" " root@${SERVER_IP} :./SERVER_ENV.txt"
18
+
19
+ ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${SERVER_IP} " tee -a ~/.bashrc < ./SERVER_ENV.txt"
20
+
21
+ scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no " $TEST_SCRIPT " root@${SERVER_IP} :./build.sh
22
+
23
+ ssh -tt -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${SERVER_IP} ' bash build.sh'
Original file line number Diff line number Diff line change @@ -13,29 +13,20 @@ GIT_REPO="https://${GERRIT_HOST}/${GERRIT_PROJECT}"
13
13
# enable the Storage SIG Gluster and Ceph repositories
14
14
yum -y install centos-release-ceph
15
15
16
+ BUILDREQUIRES=" git bison cmake dbus-devel flex gcc-c++ krb5-devel libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build xfsprogs-devel python2-devel"
17
+
18
+ BUILDREQUIRES_EXTRA=" libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel"
19
+
16
20
# basic packages to install
17
- xargs yum -y install <<< "
18
- git
19
- bison
20
- cmake
21
- dbus-devel
22
- flex
23
- gcc-c++
24
- git
25
- krb5-devel
26
- libacl-devel
27
- libblkid-devel
28
- libcap-devel
29
- libnfsidmap-devel
30
- libwbclient-devel
31
- redhat-rpm-config
32
- rpm-build
33
- libcephfs-devel
34
- librgw-devel
35
- xfsprogs-devel
36
- python2-devel
37
- userspace-rcu-devel
38
- "
21
+ case " ${CENTOS_VERSION} " in
22
+ 7)
23
+ yum install -y ${BUILDREQUIRES} ${BUILDREQUIRES_EXTRA}
24
+ ;;
25
+ 8s)
26
+ yum install -y ${BUILDREQUIRES}
27
+ yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA}
28
+ ;;
29
+ esac
39
30
40
31
git clone --depth=1 ${GIT_REPO}
41
32
cd $( basename " ${GERRIT_PROJECT} " )
Original file line number Diff line number Diff line change @@ -13,28 +13,20 @@ GIT_REPO="https://${GERRIT_HOST}/${GERRIT_PROJECT}"
13
13
# enable the Storage SIG Gluster and Ceph repositories
14
14
yum -y install centos-release-gluster
15
15
16
+ BUILDREQUIRES=" git bison cmake dbus-devel flex gcc-c++ krb5-devel libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel python2-devel"
17
+
18
+ BUILDREQUIRES_EXTRA=" libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel"
19
+
16
20
# basic packages to install
17
- xargs yum -y install <<< "
18
- git
19
- bison
20
- cmake
21
- dbus-devel
22
- flex
23
- gcc-c++
24
- git
25
- krb5-devel
26
- libacl-devel
27
- libblkid-devel
28
- libcap-devel
29
- libnfsidmap-devel
30
- libwbclient-devel
31
- redhat-rpm-config
32
- rpm-build
33
- libgfapi-devel
34
- xfsprogs-devel
35
- python2-devel
36
- userspace-rcu-devel
37
- "
21
+ case " ${CENTOS_VERSION} " in
22
+ 7)
23
+ yum install -y ${BUILDREQUIRES} ${BUILDREQUIRES_EXTRA}
24
+ ;;
25
+ 8s)
26
+ yum install -y ${BUILDREQUIRES}
27
+ yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA}
28
+ ;;
29
+ esac
38
30
39
31
git clone --depth=1 ${GIT_REPO}
40
32
cd $( basename " ${GERRIT_PROJECT} " )
Original file line number Diff line number Diff line change @@ -13,29 +13,26 @@ GIT_REPO="https://${GERRIT_HOST}/${GERRIT_PROJECT}"
13
13
# enable the Storage SIG Gluster and Ceph repositories
14
14
yum -y install centos-release-ceph
15
15
16
+ BUILDREQUIRES=" git bison cmake dbus-devel flex gcc-c++ krb5-devel libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build xfsprogs-devel python2-devel"
17
+
18
+ BUILDREQUIRES_EXTRA=" libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel librgw-devel"
19
+
16
20
# basic packages to install
17
- xargs yum -y install <<< "
18
- git
19
- bison
20
- cmake
21
- dbus-devel
22
- flex
23
- gcc-c++
24
- git
25
- krb5-devel
26
- libacl-devel
27
- libblkid-devel
28
- libcap-devel
29
- libnfsidmap-devel
30
- libwbclient-devel
31
- redhat-rpm-config
32
- rpm-build
33
- libcephfs-devel
34
- librgw-devel
35
- xfsprogs-devel
36
- python2-devel
37
- userspace-rcu-devel
38
- "
21
+ case " ${CENTOS_VERSION} " in
22
+ 7)
23
+ yum install -y ${BUILDREQUIRES} ${BUILDREQUIRES_EXTRA}
24
+ ;;
25
+ 8s)
26
+ yum install -y ${BUILDREQUIRES}
27
+ yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA}
28
+ ;;
29
+ * )
30
+ ENABLE_REPOS=" --enablerepo=powertools"
31
+ BUILDREQUIRES=" ${BUILDREQUIRES} python3-devel rpcgen libtirpc-devel liburing-devel rsync "
32
+ yum -y update --skip-broken --nobest
33
+ yum -y install epel-release
34
+ ;;
35
+ esac
39
36
40
37
git clone --depth=1 ${GIT_REPO}
41
38
cd $( basename " ${GERRIT_PROJECT} " )
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
- job :
2
- name : nfs_ganesha_code_compilation
2
+ name : code-compilation
3
3
node : cico-workspace
4
4
description : ' Run code compilation for nfs-ganesha against the latest build of Ganesha with FSAL_GLUSTER.'
5
5
project-type : freestyle
Original file line number Diff line number Diff line change 1
1
- project :
2
- name : ' nfs-ganesha_trigger- fsal'
2
+ name : ' fsal'
3
3
product :
4
4
- cephfs
5
5
- gluster
6
6
- rgw
7
7
8
8
jobs :
9
- - ' {name}_ {product}'
9
+ - ' {name}- {product}'
10
10
11
11
- job-template :
12
- name : ' {name}_ {product}'
12
+ name : ' {name}- {product}'
13
13
node : cico-workspace
14
14
project-type : freestyle
15
15
concurrent : false
31
31
- centos_variables
32
32
33
33
builders :
34
+
35
+ - shell : !include-raw-escape: scripts/fsal-build.sh
36
+
37
+ builders :
38
+ - shell : !include-raw-escape: scripts/common/get-node.sh
34
39
- shell : !include-raw-escape: scripts/fsal-build.sh
35
40
36
41
triggers :
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export BUILD_NUMBER=${BUILD_NUMBER}
9
9
if [ " $JOB_NAME " == " nfs_ganesha_dbench" ]; then
10
10
bash $WORKSPACE /ci-tests/jobs/scripts/dbench/basic-gluster-duffy.sh
11
11
RET=$?
12
- elif [ " $JOB_NAME " == " nfs_ganesha_code_compilation " ]; then
13
- bash $WORKSPACE /ci-tests/jobs/scripts/code_compilation /basic-gluster-duffy.sh
12
+ elif [ " $JOB_NAME " == " code-compilation " ]; then
13
+ bash $WORKSPACE /ci-tests/build_scripts/code-compilation /basic-gluster-duffy.sh
14
14
RET=$?
15
15
fi
16
16
Original file line number Diff line number Diff line change 22
22
fi
23
23
done
24
24
25
- if [ " $JOB_NAME " == " nfs-ganesha_trigger-fsal_cephfs " ] || [ " $JOB_NAME " == " nfs-ganesha_trigger-fsal_gluster " ] || [ " $JOB_NAME " == " nfs-ganesha_trigger-fsal_rgw " ]; then
25
+ if [[ $JOB_NAME =~ fsal- * ] ]; then
26
26
node_count=1
27
27
else
28
28
node_count=2
Original file line number Diff line number Diff line change 5
5
set +e
6
6
7
7
# run the bootstrap script
8
- python $WORKSPACE /ci-tests/build_scripts/common /bootstrap.py
8
+ bash $WORKSPACE /ci-tests/build_scripts/build-fsal /bootstrap.sh
9
9
RET=$?
10
10
11
11
# we accept different return values
You can’t perform that action at this time.
0 commit comments