TRUENAS_EXPERIMENTAL environment variable (#874)

This commit is contained in:
themylogin
2025-07-17 17:13:58 +02:00
committed by GitHub
parent 531dcaea20
commit e010ec2c26
2 changed files with 3 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ TRY_BRANCH_OVERRIDE = get_env_variable('TRY_BRANCH_OVERRIDE', str)
VERSION = get_env_variable('TRUENAS_VERSION', str, f'{_VERS}-{BUILD_TIME_OBJ.strftime("%Y%m%d-%H%M%S")}')
TRUENAS_VENDOR = get_env_variable('TRUENAS_VENDOR', str)
PRESERVE_ISO = get_env_variable('PRESERVE_ISO', bool, False)
TRUENAS_EXPERIMENTAL = get_env_variable('TRUENAS_EXPERIMENTAL', bool, True)
# We will get branch overrides and identity file path overrides from here

View File

@@ -5,7 +5,7 @@ import shlex
import shutil
from datetime import datetime
from scale_build.config import BUILD_TIME, VERSION
from scale_build.config import BUILD_TIME, VERSION, TRUENAS_EXPERIMENTAL
from scale_build.exceptions import CallError
from scale_build.utils.environment import APT_ENV
from scale_build.utils.manifest import get_truenas_train, get_release_code_name, get_secret_env
@@ -92,6 +92,7 @@ class BuildPackageMixin:
'train': get_truenas_train(),
'codename': get_release_code_name(),
'version': VERSION,
'experimental': TRUENAS_EXPERIMENTAL,
}))
os.makedirs(os.path.join(self.package_source_with_chroot, 'etc'), exist_ok=True)
with open(os.path.join(self.package_source_with_chroot, 'etc/version'), 'w') as f: