Jenkinsfile git子模块角度库

问题描述

我使用angular + monorepo开发自定义

这是我的项目

enter image description here

但这是我对詹金斯CICD的疑问

我使用checkout()拉特定的子模块

这是我的摘录

checkout([$class: 'GitSCM',branches: [[name: "${branches}"]],doGenerateSubmoduleConfigurations: false,extensions: [[$class: 'SubmoduleOption',disableSubmodules: false,parentCredentials: false,recursiveSubmodules: true,reference: '',trackingSubmodules: false]],submoduleCfg: [],userRemoteConfigs: [[credentialsId: "${credentialsId}",url: 
                                            "${gitUrl}"]]])

enter image description here

使用Monorepo,我不能仅通过子模块来构建,而是需要工作空间 因此构建会导致脚本丢失

enter image description here

我想知道一些解决此问题的方法,这样我就可以自己使用Jenkins进行构建了。

谢谢!!!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)