Skip to content

Commit

Permalink
Remove unused block-build functions
Browse files Browse the repository at this point in the history
Change-type: minor
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Feb 2, 2024
1 parent 0008306 commit 130d7fb
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 309 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ This repository provides helper scripts and tools for building Balena OS.
* __build/barys__: Used for native builds, barys is a wrapper script over bitbake that builds BalenaOS. Used to initialize a build directory and create device type json files out of the coffeescript files, and then run the default build. Use `-n` to just setup the build directory.
* __build/balena-build.sh__: Used to build in a container, this script downloads a container builder image and calls barys.
* __automation/jenkins_build.sh__: Used in jenkins automation to build the OS, requires a jenkins environment to work.
* __automation/jenkins_build-blocks.sh__: Used in jenkins automation to build OS blocks defined in a hostOS contract, requires a jenkins environment to work.

## Contributing

Expand Down
20 changes: 0 additions & 20 deletions automation/Dockerfile_yocto-block-build-env

This file was deleted.

103 changes: 0 additions & 103 deletions automation/entry_scripts/balena-build-block.sh

This file was deleted.

41 changes: 0 additions & 41 deletions automation/include/balena-deploy.inc
Original file line number Diff line number Diff line change
Expand Up @@ -330,47 +330,6 @@ balena_deploy_block() {
balena_lib_docker_remove_helper_images "balena-push-env"
}

# Builds and deploys the specified block to BalenaCloud
# Input arguments;
# $1: App name to deploy into
# $2: Device type for the app
# $3: Package list to build the block with
# $4: Balena cloud account (defaults to balena_os)
# $5: Balena API environment
#
balena_build_block() {
local _appName="$1"
local _device_type="${2:-${MACHINE}}"
local _packages="${3:-${PACKAGES}}"
local _balenaos_account="${4:-balena_os}"
local _api_env="${5:-$(balena_lib_environment)}"

[ -z "${_appName}" ] && echo "App name is required" && return
[ -z "${_device_type}" ] && echo "Device type is required" && return
[ -z "${_packages}" ] && echo "Package list is required" && return

if ! balena_lib_docker_pull_helper_image "Dockerfile_yocto-block-build-env" balena_yocto_scripts_revision; then
return 1
fi
docker run --rm -t \
-e APPNAME="${_appName}" \
-e NAMESPACE="${NAMESPACE:-balena}" \
-e RELEASE_VERSION="$(balena_lib_get_os_version)" \
-e PACKAGES="${_packages}" \
-e VERBOSE="${VERBOSE}" \
-e MACHINE="${_device_type}" \
-e TAG="${balena_yocto_scripts_revision}" \
-e WORKSPACE=/work \
-e balenaCloudEmail="${balenaCloudEmail}" \
-e balenaCloudPassword="${balenaCloudPassword}" \
-e ESR="${ESR}" \
-v "${WORKSPACE:-"${PWD}"}":/work \
--privileged \
"${NAMESPACE}"/yocto-block-build-env:"${balena_yocto_scripts_revision}" /balena-build-block.sh

balena_lib_docker_remove_helper_images "yocto-block-build-env"
}

# Initialize a compose file in the specified path
#
# Input:
Expand Down
144 changes: 0 additions & 144 deletions automation/jenkins_build-blocks.sh

This file was deleted.

0 comments on commit 130d7fb

Please sign in to comment.