diff --git a/upstreamcentostests.sh b/upstreamcentostests.sh index 761ea99073f4dfdd543804b8372e636c541a91dd..d872faaa3735f2ac034256135d3f81e2a5f66e7b 100755 --- a/upstreamcentostests.sh +++ b/upstreamcentostests.sh @@ -3,10 +3,15 @@ # libunistring host command is linked against libunistring on c8, which is not the case for c7 # We need to install it although it is removed in the kickstart file -yum install git libunistring -y +yum install git jq libunistring -y + +# Find the last commit that passed upstream's Jenkins +PASSING=$(curl -s https://ci.centos.org/job/CentOS-Core-QA-t_functional-c8-64/lastSuccessfulBuild/api/json | jq -r '.actions[] | select(.lastBuiltRevision) | .lastBuiltRevision.SHA1') +PASSING=${PASSING:-master} git clone https://gitlab.cern.ch/linuxsupport/centos_functional_tests.git -cd centos_functional_tests; +cd centos_functional_tests +git reset --hard $PASSING # Skipping list is way longer than for cc7-base as image creation is different, # cc7-base was systemd ready, meaning most of these skips are service related