mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-22 00:33:48 +08:00
build nightly casync build in jenkins (#31880)
* casync in jenkins * rename some stuff, add a readme * slightly better names * clean * more cleanup * cleaner * release3 staging too * always rm the signed version * cleanups * in build dir * better name * simpler * more * divider * built * build * and contains * add channel description * and git branches * and build required * move this up * these are terms * updates * 3/3x * bullets * wording * version metadata * git type * more channel -> release * more build * just release * more channel to release * also fix jenkins * use build_metadata * fix normailzed * also normalized * and here * use build_metadata * dont commit that * don't touch the git stuff * branch * don't need that * or that * improved names * build_metadata * use this instead * fix * build * test nightly build again * fix * fixes * Revert "test nightly build again" This reverts commit be5e7aa7089bfc0947c9b2b484d0277c109ee089.
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
import pathlib
|
||||
|
||||
from openpilot.system.updated.casync.common import create_caexclude_file, create_casync_release, create_build_metadata_file
|
||||
from openpilot.system.version import get_build_metadata
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="creates a casync release")
|
||||
parser.add_argument("target_dir", type=str, help="target directory to build channel from")
|
||||
parser.add_argument("output_dir", type=str, help="output directory for the channel")
|
||||
parser.add_argument("channel", type=str, help="what channel this build is")
|
||||
args = parser.parse_args()
|
||||
|
||||
target_dir = pathlib.Path(args.target_dir)
|
||||
output_dir = pathlib.Path(args.output_dir)
|
||||
|
||||
create_build_metadata_file(target_dir, get_build_metadata(), args.channel)
|
||||
create_caexclude_file(target_dir)
|
||||
|
||||
digest, caidx = create_casync_release(target_dir, output_dir, args.channel)
|
||||
|
||||
print(f"Created casync release from {target_dir} to {caidx} with digest {digest}")
|
||||
Reference in New Issue
Block a user