我有一个子模块 A,它不是独立的应用程序。它需要主应用程序才能工作。我想为 A 创建一个 CI 构建,以便每当将提交推送到 A 时,它都会触发使用主项目代码的构建。
我该如何在詹金斯中做到这一点?
我需要做什么:
我该如何使用 Jenkins 和 GIT 来做到这一点?
注意我的项目有多个子模块。子模块 A 触发构建,从 A 中提取最新的更改以及最新的主代码,并从其他子模块中提取更新。
以下代码是否足以更新子模块:
git submodule sync
git submodule update --init --recursive
Run Code Online (Sandbox Code Playgroud)
我做了一个主项目的 git pull 。
然后我做
git submodule sync
git submodule update --init --recursive
Run Code Online (Sandbox Code Playgroud)
更新子模块。
那个代码够吗?
如何使用 Jenkins Git 插件查看特定分支?我已经安装了 Jenkins,并使用 GIT 插件来克隆存储库。任何帮助将不胜感激。
如何在 mac 上从 vmware 访问本地主机?我在 vm ware 中运行现代 IE 图像。我希望能够从 iE 访问本地主机地址。
我的 mac 上的 /etc/hosts 文件中有以下内容:
127.0.0.1 example.example.com
127.0.0.1 beta-example.example.com
Run Code Online (Sandbox Code Playgroud)
我希望能够从 vmware VM 访问 beta-example.example.com。