See #1732 for details, but summarized the CI uses a local path which differs from the normal remote URL which causes tar_scm service to complain and no re-create the obscpio. See openSUSE/obs-service-tar_scm@44b3bee for the relevant change.
27 lines
705 B
Bash
Executable File
27 lines
705 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
SOURCE_DIR="${SOURCE_DIR:-/usr/src/target}"
|
|
|
|
repo="${1:-openSUSE_Tumbleweed}"
|
|
arch="${2:-x86_64}"
|
|
|
|
osc-init
|
|
|
|
osc checkout "$OBS_PACKAGE"
|
|
cd "$OBS_PACKAGE"
|
|
|
|
# point _service file to SOURCE_DIR instead of remote
|
|
sed -i "s|$(cd "$SOURCE_DIR" && git remote get-url origin)|$SOURCE_DIR|" _service
|
|
sed -i "s|<param name=\"scm\">git</param>|<param name=\"scm\">git</param><param name=\"revision\">$(cd "$SOURCE_DIR" && git describe --all --always)</param>|" _service
|
|
|
|
rm *.obscpio
|
|
# ugly, but upstream not interested in making this process clean
|
|
export TAR_SCM_TESTMODE=1
|
|
osc service disabledrun
|
|
|
|
# skip interactive
|
|
osc diff | cat
|
|
|
|
osc build --trust-all-projects --no-verify "$repo" "$arch"
|