Commit a1495aa3 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Ensure default versions file generated.

parent a3e7cbd2
......@@ -133,7 +133,7 @@
- OS_VERSION=$(echo $CI_JOB_NAME | cut -d- -f 3)
- NEKVER=$(<VERSION)
- STATUSCODE=$(curl --silent -o ${version_file} --write-out "%{http_code}" https://www.nektar.info/${OS_DIST}/${OS_VERSION}/versions/${version_file})
- if [ $STATUSCODE -eq 404 ]; then echo '{}' > ${version_file}; elif [ $STATUSCODE -ne 200 ]; then echo "Failed to grab versions file"; fi
- if [ $STATUSCODE -ne 200 ]; then echo '{}' > ${version_file}; fi
- RPMRELEASE=$(python3 pkg/redhat/version-tracker.py ${version_file} nektar ${NEKVER})
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- cp pkg/redhat/nektar-${OS_DIST}-${OS_VERSION}.spec ~/rpmbuild/SPECS/nektar.spec
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment