Skip to content
Snippets Groups Projects

Add temp kernel repopath for kmod building

Merged Daniel Juarez Gonzalez requested to merge kmod_repopath into master
1 unresolved thread
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -107,7 +107,7 @@ AFS_VER="${AFS_VER%.$DIST}"
KERNEL_VER=$(repoquery --repofrompath=baseos,$DEST/BaseOS/x86_64/os/ --qf="%{version}_%{release}" kernel-core)
# Set up the repo url where https://gitlab.cern.ch/linuxsupport/rpms/openafs/-/blob/master/build_kmod.sh should look for the KERNEL_VER
KVER_REPODIR="http://linuxsoft.cern.ch/$PATH_DESTINATION/$SNAPS_DIR/.tmp.$TODAY/BaseOS/x86_64/os/"
SNAPSHOT_PATH="$SNAPS_DIR/.tmp.$TODAY/"
# Given those AFS and kernel versions, what kmod should we have?
EXPECTED_KMOD="${AFS_VER}.${KERNEL_VER}.${DIST}"
@@ -129,7 +129,7 @@ KVER=$(repoquery --repofrompath=baseos,$DEST/BaseOS/x86_64/os/ --qf="%{version}-
PIPELINE_ID=$(curl -sL --request POST \
--header "PRIVATE-TOKEN: $LINUXCI_API_TOKEN" \
--header "Content-Type: application/json" \
--data "{ \"ref\": \"master\", \"variables\": [ {\"key\": \"BUILD_8\", \"value\": \"False\"}, {\"key\": \"BUILD_7\", \"value\": \"False\"}, {\"key\": \"BUILD_KMOD\", \"value\": \"True\"}, {\"key\": \"KVER\", \"value\": \"$KVER\"}, {\"key\": \"KVER_REPODIR\", \"value\": \"$KVER_REPODIR\"} ] }" \
--data "{ \"ref\": \"master\", \"variables\": [ {\"key\": \"BUILD_8\", \"value\": \"False\"}, {\"key\": \"BUILD_7\", \"value\": \"False\"}, {\"key\": \"BUILD_KMOD\", \"value\": \"True\"}, {\"key\": \"KVER\", \"value\": \"$KVER\"}, {\"key\": \"SNAPSHOT_PATH\", \"value\": \"$SNAPSHOT_PATH\"} ] }" \
"https://gitlab.cern.ch/api/v4/projects/linuxsupport%2Frpms%2Fopenafs/pipeline" | jq -r .id)
echo "Triggering kmod openafs rebuild for ${EXPECTED_KMOD} on https://gitlab.cern.ch/${TRIGGER_REPO}/pipelines/${PIPELINE_ID}"
Loading