script_generator
Running the script_generator binary generates the script.gitlab and script.jenkins templates of the Kunpeng native development pipeline based on the configuration in the machine.yaml file.
Command Function
Generates the script.gitlab and script.jenkins templates based on the valid roles specified in the machine.yaml configuration file.
Syntax
script_generator [-h] [-f YAML_PATH] [--silent]
View the tool usage instructions.
./script_generator -h
Command output:
usage: script_generator [-h] [-f YAML_PATH] [--silent]
devkit-pipeline script generator
optional arguments:
-h, --help show this help message and exit
-f YAML_PATH, --config YAML_PATH
Assign yaml config file path. Default path is 'machine.yaml' in current directory.
--silent Close debug log.
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
(Optional) Obtains help information. |
-f/--config |
YAML_PATH |
(Optional) machine.yaml file path. |
--silent |
- |
(Optional) Disables debug logs. |
Example
- Generate the script.gitlab and script.jenkins templates in the linux directory based on the valid roles specified in the machine.yaml configuration file.
./script_generator -f ./machine.yaml
The mapping between machine.yaml and the generated templates is as follows:
- scanner: software porting assessment, source code porting, 64-bit running mode check, byte alignment check, memory consistency check, vectorization check, and build affinity.
- c_builder_gcc: common compilation and GCC for openEuler compilation.
- c_builder_bisheng_compiler: BiSheng Compiler compilation.
- java_builder_jdk8: JDK 8 compilation.
- java_builder_jdk17: JDK 17 compilation.
- compatibility: Kunpeng compatibility testing
- tester: Java performance testing
- Modify the generated pipeline template files (script_jenkins and script_gitlab). The modified templates can then be used in the pipeline.