Skip to content

Commit 773530a

Browse files
Rakshitha Kamathrakshithakamath94
Rakshitha Kamath
authored andcommitted
Update jobs
1 parent 05b4abf commit 773530a

19 files changed

+26
-43
lines changed

Diff for: build_scripts/code-compilation/client.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ do
4545
yum -y install bison flex cmake gcc-c++ libacl-devel krb5-devel dbus-devel libcap-devel libblkid-devel rpm-build redhat-rpm-config glusterfs-api
4646
yum -y --enablerepo=crb install libnfsidmap-devel libwbclient-devel userspace-rcu-devel userspace-rcu libnsl2-devel libcephfs-devel libuuid libuuid-devel
4747
fi
48-
timeout -s SIGKILL 240s git clone --depth=1 https://review.gerrithub.io/ffilz/nfs-ganesha
48+
timeout -s SIGKILL 600s git clone --depth=1 https://review.gerrithub.io/ffilz/nfs-ganesha
4949
TIMED_OUT=$?
50+
echo $TIMED_OUT
5051
#Return code will be 124 if it ends the process by using SIGTERM for not getting any response. 137 when used SIGKILL to kill the process
5152
if [ $TIMED_OUT == 137 ]; then
5253
echo -e "The process timed out after 1 minute!\nChecking the Server process to see if it has crashed!"

Diff for: build_scripts/common/basic-gluster.sh

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ set -e
2828
# be a little bit more verbose
2929
set -x
3030

31+
exit 0
32+
3133
# enable repositories
3234
yum -y install centos-release-gluster yum-utils centos-release-ceph epel-release
3335

Diff for: build_scripts/common/basic-storage-scale.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ chmod +x ./aws/*
3636
aws --version
3737
aws configure set aws_access_key_id ${AWS_ACCESS_KEY}
3838
aws configure set aws_secret_access_key ${AWS_SECRET_KEY}
39-
aws s3api get-object --bucket nfsganesha-ci --key "version_to_use.txt" "version_to_use.txt"
39+
aws s3api get-object --bucket centos-ci --key "version_to_use.txt" "version_to_use.txt"
4040
VERSION_TO_USE=$(cat version_to_use.txt)
4141
echo ${VERSION_TO_USE}
42-
aws s3api get-object --bucket nfsganesha-ci --key "${VERSION_TO_USE}" "Storage_Scale_Developer-5.1.9.0-x86_64-Linux-install.zip"
42+
aws s3api get-object --bucket centos-ci --key "${VERSION_TO_USE}" "Storage_Scale_Developer-5.1.9.0-x86_64-Linux-install.zip"
4343
unzip Storage_Scale_Developer-5.1.9.0-x86_64-Linux-install.zip
4444

4545
ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N ""

Diff for: build_scripts/pynfs/client.sh

+2-23
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ set -e
1212
# enable some more output
1313
set -x
1414

15+
echo 1
16+
1517
[ -n "${SERVER}" ]
1618
[ -n "${EXPORT}" ]
1719
[ -n "${TEST_PARAMETERS}" ]
@@ -24,19 +26,9 @@ rm -rf /root/pynfs && git clone git://linux-nfs.org/~bfields/pynfs.git
2426
cd /root/pynfs && yes | python3 setup.py build > /tmp/output_tempfile.txt
2527
echo $?
2628

27-
set +e
28-
2929
LOG_FILE40="/tmp/pynfs"$(date +%s)".log"
3030
cd /root/pynfs/nfs4.0
3131
./testserver.py ${SERVER}:${EXPORT} --verbose --maketree --showomit --rundeps all ganesha ${TEST_PARAMETERS} >> "${LOG_FILE40}"
32-
#timeout --preserve-status -s SIGKILL 240s ./testserver.py ${SERVER}:${EXPORT} --verbose --maketree --showomit --rundeps all ganesha ${TEST_PARAMETERS} >> "${LOG_FILE40}"
33-
#TIMED_OUT=$?
34-
#Return code will be 124 if it ends the process by using SIGTERM for not getting any response. 137 when used SIGKILL to kill the process
35-
#if [ $TIMED_OUT == 137 ]; then
36-
# echo -e "The process timed out after 4 minute!\nLooks like the Server process to see if it has crashed!"
37-
# exit 1
38-
#fi
39-
#cd /root/pynfs/nfs4.0 && ./testserver.py ${SERVER}:${EXPORT} --verbose --maketree --showomit --rundeps all ganesha ${TEST_PARAMETERS} >> "${LOG_FILE40}"
4032
RETURN_CODE40=$?
4133

4234
echo "pynfs 4.0 test output:"
@@ -45,18 +37,8 @@ cat $LOG_FILE40
4537
LOG_FILE41="/tmp/pynfs"$(date +%s)".log"
4638
cd /root/pynfs/nfs4.1
4739
./testserver.py ${SERVER}:${EXPORT} all ganesha --verbose --maketree --showomit --rundeps >> "${LOG_FILE41}"
48-
#timeout --preserve-status -s SIGKILL 240s ./testserver.py ${SERVER}:${EXPORT} all ganesha --verbose --maketree --showomit --rundeps >> "${LOG_FILE41}"
49-
#TIMED_OUT=$?
50-
#Return code will be 124 if it ends the process by using SIGTERM for not getting any response. 137 when used SIGKILL to kill the process
51-
#if [ $TIMED_OUT == 137 ]; then
52-
# echo -e "The process timed out after 4 minute!\nLooks like the Server process to see if it has crashed!"
53-
# exit 1
54-
#fi
55-
#cd /root/pynfs/nfs4.1 && ./testserver.py ${SERVER}:${EXPORT} all ganesha --verbose --maketree --showomit --rundeps >> "${LOG_FILE41}"
5640
RETURN_CODE41=$?
5741

58-
set -e
59-
6042
echo "pynfs 4.1 test output:"
6143
cat $LOG_FILE41
6244

@@ -76,8 +58,5 @@ if [ $RETURN_CODE40 != 0 ] || [ $RETURN_CODE40 != 0 ]; then
7658
echo "pynfs 4.1 test suite failures:"
7759
echo "--------------------------"
7860
cat $LOG_FILE41 | grep FAILURE
79-
8061
exit 1
8162
fi
82-
83-
exit 0

Diff for: jobs/macros.yml renamed to globals/macros/macros.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- builder:
1414
name: get-node
1515
builders:
16-
- shell: !include-raw: ../build_scripts/common/get-node.sh
16+
- shell: !include-raw-verbatim: ../../build_scripts/common/get-node.sh
1717

1818
- property:
1919
name: nfs-github
@@ -56,7 +56,7 @@
5656
exclude-drafts: true
5757
exclude-no-code-change: true
5858
- comment-added-contains-event:
59-
comment-contains-value: 'recheck {option}'
59+
comment-contains-value: 'recheck all'
6060
projects:
6161
- project-compare-type: PLAIN
6262
project-pattern: 'ffilz/nfs-ganesha'
@@ -162,7 +162,7 @@
162162
- log-text: Build was aborted
163163
operator: OR
164164
script:
165-
!include-raw: ../build_scripts/common/return-node.sh
165+
!include-raw-verbatim: ../../build_scripts/common/return-node.sh
166166

167167
- publisher:
168168
name: archive_artifacts

Diff for: jobs/checkpatch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
name: GERRIT_USER
3333

3434
builders:
35-
- shell: !include-raw: scripts/checkpatch.sh
35+
- shell: !include-raw-verbatim: scripts/checkpatch.sh
3636

3737
triggers:
3838
- gerrit:

Diff for: jobs/code_compilation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
builders:
3434
- get-node
35-
- shell: !include-raw: scripts/common.sh
35+
- shell: !include-raw-verbatim: scripts/common.sh
3636

3737
wrappers:
3838
- gerrithub_key

Diff for: jobs/dbench.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
builders:
3434
- get-node
35-
- shell: !include-raw: scripts/common.sh
35+
- shell: !include-raw-verbatim: scripts/common.sh
3636

3737
wrappers:
3838
- cleanup-ws

Diff for: jobs/fsal_template.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333

3434
builders:
3535

36-
- shell: !include-raw-escape: scripts/fsal-build.sh
36+
- shell: !include-raw-verbatim: scripts/fsal-build.sh
3737

3838
builders:
3939
- get-node
40-
- shell: !include-raw-escape: scripts/fsal-build.sh
40+
- shell: !include-raw-verbatim: scripts/fsal-build.sh
4141

4242
triggers:
4343
- gerrithub-trigger:

Diff for: jobs/labelled_nfs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
triggers:
2727
- gerrithub-trigger:
28+
option: 'labelled_nfs'
2829

2930
builders:
3031
- get-node

Diff for: jobs/posix-compliance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
builders:
3737
- get-node
38-
- shell: !include-raw: scripts/posix_compliance.sh
38+
- shell: !include-raw-verbatim: scripts/posix_compliance.sh
3939

4040
wrappers:
4141
- gerrithub_key

Diff for: jobs/pylint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
builders:
2929
- get-node
30-
- shell: !include-raw: scripts/pylint.sh
30+
- shell: !include-raw-verbatim: scripts/pylint.sh
3131

3232
wrappers:
3333
- gerrithub_key

Diff for: jobs/pynfs-acl.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
builders:
4040
- get-node
41-
- shell: !include-raw: scripts/common.sh
41+
- shell: !include-raw-verbatim: scripts/common.sh
4242

4343
triggers:
4444
- gerrithub-trigger:

Diff for: jobs/pynfs-ceph.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
builders:
3737
- get-node
38-
- shell: !include-raw: scripts/common.sh
38+
- shell: !include-raw-verbatim: scripts/common.sh
3939

4040
wrappers:
4141
- gerrithub_key

Diff for: jobs/pynfs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
builders:
3636
- get-node
37-
- shell: !include-raw: scripts/common.sh
37+
- shell: !include-raw-verbatim: scripts/common.sh
3838

3939
wrappers:
4040
- gerrithub_key

Diff for: jobs/storage-scale.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
builders:
3131
- get-node
32-
- shell: !include-raw: scripts/common.sh
32+
- shell: !include-raw-verbatim: scripts/common.sh
3333

3434
wrappers:
3535
- cleanup-ws

Diff for: jobs/template_iozone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
builders:
4646
- get-node
47-
- shell: !include-raw-escape: scripts/common.sh
47+
- shell: !include-raw-verbatim: scripts/common.sh
4848

4949
triggers:
5050
- gerrithub-trigger:

Diff for: jobs/trigger-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
builders:
2424
- get-node
25-
- shell: !include-raw: scripts/tests.sh
25+
- shell: !include-raw-verbatim: scripts/tests.sh
2626

2727
triggers:
2828
- gerrithub-trigger:

Diff for: tests/deploy-nfs-ganesha-ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
sed "s/JENKINS_API_KEY/$JENKINS_API_KEY/g" tests/jenkins.conf > jobs/jenkins.ini
3-
jenkins-jobs --conf jobs/jenkins.ini update jobs
3+
jenkins-jobs --allow-empty-variables --conf jobs/jenkins.ini update jobs/:globals/macros/

0 commit comments

Comments
 (0)