root/build-tools/stx/patch/scripts/deploy-precheck.sh
Dostoievski Batista d81f194e69 Add pre-check script to the patch
This commit add the deploy_precheck element to XML, allowing the
patch writer to add script used on the pre-check process of the deploy.

Test Plan:
- Enter the builder container
    $ stx shell
    $ cd $MY_REPO/build-tools/stx/patch
- Build patch
    $ ./patch_builder.py --recipe EXAMPLES/patch-recipe-sample.xml
- Verify if file has been added to .patch

Story: 2010676
Task: 49013

Change-Id: I18ae7fcbf046362d53a67bc290ffc9b1a0b888ad
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
2023-10-27 14:50:31 -03:00

25 lines
441 B
Bash

#!/bin/bash
#
#
# Copyright (c) 2023 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
#
# The patching subsystem provides a patch-functions bash source file
# with useful function and variable definitions.
#
. /etc/patching/patch-functions
#
# Declare an overall script return code
#
declare -i GLOBAL_RC=$PATCH_STATUS_OK
echo "Pre deploy check script"
#
# Exit the script with the overall return code
#
exit $GLOBAL_RC