diff --git "a/document/Jenkins\345\256\211\350\243\205\351\203\250\347\275\262/Jenkins\346\265\201\346\260\264\347\272\277\351\205\215\347\275\256\350\277\201\347\247\273\343\200\201\344\272\262\345\222\214\351\227\250\347\246\201.md" "b/document/Jenkins\345\256\211\350\243\205\351\203\250\347\275\262/Jenkins\346\265\201\346\260\264\347\272\277\351\205\215\347\275\256\350\277\201\347\247\273\343\200\201\344\272\262\345\222\214\351\227\250\347\246\201.md" index 028d6d683adea592abfb2df81717e2cc6562df36..0e8e139f4a0a72a80577bce309d0582acea591ca 100644 --- "a/document/Jenkins\345\256\211\350\243\205\351\203\250\347\275\262/Jenkins\346\265\201\346\260\264\347\272\277\351\205\215\347\275\256\350\277\201\347\247\273\343\200\201\344\272\262\345\222\214\351\227\250\347\246\201.md" +++ "b/document/Jenkins\345\256\211\350\243\205\351\203\250\347\275\262/Jenkins\346\265\201\346\260\264\347\272\277\351\205\215\347\275\256\350\277\201\347\247\273\343\200\201\344\272\262\345\222\214\351\227\250\347\246\201.md" @@ -36,7 +36,7 @@ stage('software-migration-assessment') { steps { echo '====== 软件迁移评估 ======' sh ''' - /usr/bin/rm -rf ./*.html + /usr/bin/rm -rf ./pkg-mig*.html devkit porting pkg-mig -i impala-2.9.0+cdh5.12.1+0-1.cdh5.12.1.p0.3.el7.x86_64.rpm -r html mv ./pkg-mig*.html ./SoftwareMigrationAssessment.html ''' @@ -77,7 +77,7 @@ stage('source-code-migration') { steps { echo '====== 源码迁移 ======' sh ''' - /usr/bin/rm -rf ./*.html + /usr/bin/rm -rf ./src-mig*.html devkit porting src-mig -i ./wtdbg2 -c make -r html mv ./src-mig*.html ./SourceCodeScanningReport.html ''' @@ -119,14 +119,39 @@ stage('source-code-migration') { ```groovy # devkit porting sys-mig -# 示例 devkit porting sys-mig -c stnt -cf porting/resources/sysmig default.conf +# 示例 stmt模式: devkit porting sys-mig -c stmt -cf porting/resources/sysmig_default.conf -o ./ +# 示例 sbom模式: devkit porting sys-mig -c sbom -cf porting/resources/sysmig default.conf -o ./ +# stmt模式 stage('system-migration') { steps { echo '====== 系统迁移 ======' sh ''' - /usr/bin/rm -rf ./*.html - devkit porting sys-mig -c stnt -cf porting/resources/sysmig default.conf + /usr/bin/rm -rf ./stmt*.csv + devkit porting sys-mig -c stmt -cf porting/resources/sysmig_default.conf -o ./ + mv ./stmt*.csv ./SystemMigration.csv + ''' + } + post { + always { + publishHTML(target: [allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll : true, + reportDir : '.', + reportFiles : 'SystemMigration.csv', + reportName : 'SystemMigration Report'] + ) + } + } + } + +# sbom模式 +stage('system-migration') { + steps { + echo '====== 系统迁移 ======' + sh ''' + /usr/bin/rm -rf ./sbom*.html + devkit porting sys-mig -c sbom -cf porting/resources/sysmig_default.conf -o ./ mv ./sbom*.html ./SystemMigration.html ''' } @@ -169,9 +194,9 @@ stage('64-bit-running-mode-check') { steps { echo '====== 64位运行模式 ======' sh ''' - /usr/bin/rm -rf ./*.html + /usr/bin/rm -rf ./mode_check*.html devkit advisor mode-check -i /opt/DevKit/testcase/affinity/precheck/test005 - mv ./mode-check*.html ./64-bit-running-mode-check.html + mv ./mode_check*.html ./64-bit-running-mode-check.html ''' } post { @@ -209,7 +234,7 @@ stage('byte-alignment-check') { steps { echo '====== 字节对齐检查 ======' sh ''' - /usr/bin/rm -rf ./*.html + /usr/bin/rm -rf ./byte-align*.html devkit advisor byte-align -i /opt/DevKit/wtdbg2-2.5 -c make -b make mv ./byte-align*.html ./byte-alignment-check.html ''' @@ -254,7 +279,7 @@ stage('memory-consistency-check') { steps { echo '====== 内存一致性检查 ======' sh ''' - /usr/bin/rm -rf ./*.html + /usr/bin/rm -rf ./mem-cons*.html devkit advisor mem-cons -i /opt/DevKit/testcase/affinity/weak_cons/test-mulbc_sort -f /opt/DevKit/testcase/affinity/weak_cons/bc_file mv ./mem-cons*.html ./memory-consistency-check.html ''' @@ -294,9 +319,9 @@ stage('memory-consistency-check') { stage('vectorized-check') { steps { - echo '====== 内存一致性检查 ======' + echo '====== 向量化检查 ======' sh ''' - /usr/bin/rm -rf ./*.html + /usr/bin/rm -rf ./vec-check*.html devkit advisor vec-check -i /opt/DevKit/testcase/affinity/vec/simple -f /opt/DevKit/testcase/affinity/vec/BCfiles -c make mv ./vec-check*.html ./vectorized-check.html ''' diff --git "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\346\226\207\344\273\266\345\210\227\350\241\250.png" "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\346\226\207\344\273\266\345\210\227\350\241\250.png" index 36d600b3635d38169451fa2f72a0635ebf2a9d37..8208ce65105de900709e0af0da6025d4e0e22b3f 100644 Binary files "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\346\226\207\344\273\266\345\210\227\350\241\250.png" and "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\346\226\207\344\273\266\345\210\227\350\241\250.png" differ diff --git "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\347\273\204\344\273\266\345\214\205\346\224\276\347\275\256\344\275\215\347\275\256.png" "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\347\273\204\344\273\266\345\214\205\346\224\276\347\275\256\344\275\215\347\275\256.png" index aac737510da07d1ff8ce045bffadded2a7f9ea83..71a7ab070b7c92b854299d62d70f7517cb7ed029 100644 Binary files "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\347\273\204\344\273\266\345\214\205\346\224\276\347\275\256\344\275\215\347\275\256.png" and "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/image-\347\273\204\344\273\266\345\214\205\346\224\276\347\275\256\344\275\215\347\275\256.png" differ diff --git "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/\344\270\200\351\224\256\344\270\213\350\275\275\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260\350\257\264\346\230\216.PNG" "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/\344\270\200\351\224\256\344\270\213\350\275\275\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260\350\257\264\346\230\216.PNG" new file mode 100644 index 0000000000000000000000000000000000000000..96ffcbdc2c71ef7b83f876fc73f79ebe9cb0f29c Binary files /dev/null and "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/\344\270\200\351\224\256\344\270\213\350\275\275\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260\350\257\264\346\230\216.PNG" differ diff --git "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/\344\270\200\351\224\256\351\203\250\347\275\262\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260\350\257\264\346\230\216.PNG" "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/\344\270\200\351\224\256\351\203\250\347\275\262\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260\350\257\264\346\230\216.PNG" new file mode 100644 index 0000000000000000000000000000000000000000..3c5b752f45d35189b3a25131fb67bd2ddf8890aa Binary files /dev/null and "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/image/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline/\344\270\200\351\224\256\351\203\250\347\275\262\345\221\275\344\273\244\350\241\214\345\217\202\346\225\260\350\257\264\346\230\216.PNG" differ diff --git "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" index 3efdaa78e746490ba225f5b2118f57cc57c8a0a0..84b405850c9971a52849394559826fd4709a9bf3 100644 --- "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" +++ "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" @@ -25,11 +25,13 @@ builder: - 192.168.0.1 executor: - 192.168.0.1 +devkit: + - 192.168.0.4 ``` 其中,**`user`** 需填写本结点至其他结点配置免密的用户名,**`pkey`** 为配置免密所用公钥对应的私钥路径。 -**`scanner`**,**`builder`**,**`executor`** 分别对应用户的扫描机,构建机,执行机,需以yaml列表的形式输入各角色机器对应的ip。 +**`scanner`**,**`builder`**,**`executor`**,**`devkit`** 分别对应用户的扫描机,构建机,执行机,devkit部署机器 ,需以yaml列表的形式输入各角色机器对应的ip。 - 生成公私钥对的命令为: @@ -65,13 +67,14 @@ executor: ./devkitpipeline -h ``` -![image-批量部署工具使用提示](image/批量部署工具devkitpipeline/image-批量部署工具使用提示.png) +![](批量部署工具devkitpipeline.assets/一键部署命令行参数说明-17107556065365.PNG) -除 **`-h`** 使用提示参数外,**`devkitpipeline`** 批量部署工具还提供 **`-f`**, **`--debug`** 两个参数。 +除 **`-h`** 使用提示参数外,**`devkitpipeline`** 批量部署工具还提供 **`-f`**,**`-iso`** ,**`--debug`** 三个参数。 - 使用`-f`参数,指定所需yaml配置文件为后续输入的路径。若不使用`-f`参数,批量部署工具会从当前路径下读取名为`machine.yaml`的文件作为yaml配置文件。 `-f`参数别名为`--config`。 +- 使用 `-iso` 参数,指定要安装镜像源文件,仅部署在executor和devkit机器上。 - 使用 `--debug`参数,可以打开批量部署工具的debug日志信息,方便根据命令行日志输出确认哪个环节出现了问题。 注:本批量部署工具将标准输出作为日志输出地址,没有生成单独的日志文件。 @@ -84,6 +87,10 @@ executor: ./devkitpipeline -f ./machine.yaml --debug ``` +``` +./devkitpipeline -f ./machine.yaml -iso /path/to/iso --debug +``` + #### 批量部署工具目前支持批量部署 GCCforOpenEuler,BiShengCompiler,BiShengJDK8,BiShengJDK17。 @@ -108,10 +115,26 @@ BiShengJDK8 和 BiShengJDK17 均使用 `update-alternatives` 工具进行配置 该工具在release包v0.1版本,tools/linux文件夹下,在Linux机器上使用,用于下载组件包。 -在有网络环境的linux服务器上,一键下载工具所在路径,执行如下命令,即可在linux机器当前路径下下载组件包。 +在有网络环境的linux服务器上,一键下载工具所在路径,执行如下命令,可以查看该工具的使用提示。 + +```shell +./download -h +``` + +![](批量部署工具devkitpipeline.assets/一键下载命令行参数说明.PNG) + +除 **`-h`** 使用提示参数外,**`download`** 批量下载工具还提供 **`-iso`** 参数。 + +- 使用 -iso 参数,指定下载iso版本,输入'auto'将自动检测操作系统版本,并自动下载对应的版本iso文件。 + +##### 使用批量部署工具常用的命令为: ```shell -./download +./download +``` + +```shell +./download -iso auto ``` @@ -128,6 +151,16 @@ BiShengJDK8 和 BiShengJDK17 均使用 `update-alternatives` 工具进行配置 +##### 使用批量部署工具常用的命令为: + +```shell +./download +``` + +```shell +./download -iso openEuler_2203_LTS +``` + ## 部署结果