diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-02-25 10:26:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 10:26:54 +0100 |
commit | 8e8e8e4bc5c5c44ff0e8ed1b7e8b897ea8f75b9a (patch) | |
tree | 6c12a69a74f425442658af9b218a200a2d872ae0 | |
parent | a3e60a00b400a1bad8609d5ce1abb0bb7abed7bc (diff) | |
parent | 7c27657c79046dac8ae509a4eacb1a3a152e2d23 (diff) | |
download | vyos-build-8e8e8e4bc5c5c44ff0e8ed1b7e8b897ea8f75b9a.tar.gz vyos-build-8e8e8e4bc5c5c44ff0e8ed1b7e8b897ea8f75b9a.zip |
Merge pull request #509 from c-po/git-build
T6064: add build error if branch information from Git repository is missing
-rwxr-xr-x | scripts/build-vyos-image | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image index 6b47fca..ed00175 100755 --- a/scripts/build-vyos-image +++ b/scripts/build-vyos-image @@ -290,10 +290,9 @@ if __name__ == "__main__": # Retrieve git branch name git_branch = repo.active_branch.name except Exception as e: - print("Could not retrieve information from git: {0}".format(str(e))) + exit(f'Could not retrieve information from git: {e}') build_git = "" git_branch = "" - git_commit = "" # Create the build version string if build_config['build_type'] == 'development': |