Add os codename and arch config options
Modify build.conf.example.in adding fields for codename and arch. Modify configure-build.sh to set codename and arch in stx.conf. Story: NNNNNNN Task: NNNNN Depends-On: https://review.opendev.org/c/starlingx/tools/+/946806 Change-Id: I8f980fd61a6619e1534d8f2a4edcb74d0b0265ba Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
@@ -78,6 +78,16 @@ source ./import-stx
|
||||
stx config --add builder.myuname "$USER"
|
||||
stx config --add builder.uid "$USER_ID"
|
||||
|
||||
if [[ -n "$OS_ID" ]] ; then
|
||||
stx config --add builder.os_id "$OS_ID"
|
||||
fi
|
||||
if [[ -n "$OS_CODENAME" ]] ; then
|
||||
stx config --add builder.os_codename "$OS_CODENAME"
|
||||
fi
|
||||
if [[ -n "$OS_ARCH" ]] ; then
|
||||
stx config --add builder.os_arch "$OS_ARCH"
|
||||
fi
|
||||
|
||||
# Embedded in ~/localrc of the build container
|
||||
stx config --add project.gituser "$USER_NAME"
|
||||
stx config --add project.gitemail $USER_EMAIL
|
||||
|
||||
@@ -9,6 +9,15 @@ BUILD_USER="jenkins"
|
||||
USER_NAME="Jenkins"
|
||||
USER_EMAIL="davlet.panech@windriver.com"
|
||||
|
||||
# build OS ... e.g. debian...
|
||||
OS_ID="debian"
|
||||
|
||||
# Build OS release codename ... e.g. bullseye, trixie
|
||||
OS_CODENAME="bullseye"
|
||||
|
||||
# Build architecture... e.g. amd64, arm64
|
||||
OS_ARCH="amd64"
|
||||
|
||||
# Branch name, used as part of build directories & artifacts
|
||||
BUILD_BRANCH="master"
|
||||
|
||||
@@ -95,7 +104,7 @@ BUILD_OUTPUT_ROOT_URL="http://$(hostname -f):8088${BUILD_OUTPUT_ROOT}"
|
||||
# Create latest symlink in: $PUBLISH_ROOT/latest_build
|
||||
|
||||
# StarlingX Mirror: publish to a location outside of the archive directory
|
||||
#PUBLISH_ROOT="/export/mirrors/$PROJECT_ID/$MANIFEST_BRANCH/debian/monolithic"
|
||||
#PUBLISH_ROOT="/export/mirror/$PROJECT_ID/$MANIFEST_BRANCH/${OS_ID}/${OS_CODENAME}/${OS_ARCH}/monolithic"
|
||||
#PUBLISH_ROOT_URL="http://$(hostname -f):8088${PUBLISH_ROOT}"
|
||||
#PUBLISH_SUBDIR="" # may be empty
|
||||
#PUBLISH_LATEST_LINK=true # create latest symlink?
|
||||
|
||||
Reference in New Issue
Block a user