@@ -190,9 +190,11 @@ <h2 id="部署-jenkins"><a aria-hidden="true" tabindex="-1" href="#部署-jenkin
190190 "> < div onclick ="copied(this) " class ="copied "> < svg class ="octicon-copy " aria-hidden ="true " viewBox ="0 0 16 16 " fill ="currentColor " height ="12 " width ="12 "> < path fill-rule ="evenodd " d ="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z "> </ path > < path fill-rule ="evenodd " d ="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z "> </ path > </ svg > < svg class ="octicon-check " aria-hidden ="true " viewBox ="0 0 16 16 " fill ="currentColor " height ="12 " width ="12 "> < path fill-rule ="evenodd " d ="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z "> </ path > </ svg > </ div > </ pre >
191191 < p > 访问 jenkins: < a href ="http://152.22.3.186:8086/ "> http://152.22.3.186:8086/</ a > </ p >
192192 < h2 id ="1-安装插件 "> < a aria-hidden ="true " tabindex ="-1 " href ="#1-安装插件 " class ="anchor "> < span class ="icon icon-link "> </ span > </ a > 1. 安装插件</ h2 >
193- < ul >
194- < li > < a href ="https://plugins.jenkins.io/git-parameter "> Git Parameter Plug-In</ a > 支持在 CI 上自动加载仓库分支</ li >
195- </ ul >
193+ < p > < a href ="https://plugins.jenkins.io/git-parameter "> Git Parameter Plug-In</ a > 支持在 CI 上自动加载仓库分支</ p >
194+ < img src ="imgs/0-1.png " width ="620 ">
195+ < img src ="imgs/0-2.png " width ="620 ">
196+ < p > 在 < code > Manage Jenkins</ code > -> < code > System</ code > 中设置 < code > Git Parameter</ code > </ p >
197+ < img src ="imgs/0-3.png " width ="620 ">
196198 < h2 id ="2-添加凭证 "> < a aria-hidden ="true " tabindex ="-1 " href ="#2-添加凭证 " class ="anchor "> < span class ="icon icon-link "> </ span > </ a > 2. 添加凭证</ h2 >
197199 < img src ="imgs/1.png " width ="620 ">
198200 < img src ="imgs/2.png " width ="620 ">
@@ -205,7 +207,8 @@ <h2 id="3-新建工作流"><a aria-hidden="true" tabindex="-1" href="#3-新建
205207 < p > 设置 < a href ="https://plugins.jenkins.io/git-parameter "> < code > Git Parameter</ code > </ a > 可以在构建的时候读取分支,选择分支</ p >
206208 < img src ="imgs/7.png " width ="620 ">
207209 < img src ="imgs/8.png " width ="620 ">
208- < h2 id ="3-添加构建选项可以在构建前选择-生产-还是-开发-模式在脚本中判断 "> < a aria-hidden ="true " tabindex ="-1 " href ="#3-添加构建选项可以在构建前选择-生产-还是-开发-模式在脚本中判断 " class ="anchor "> < span class ="icon icon-link "> </ span > </ a > 3. 添加构建选项,可以在构建前选择 < code > 生产</ code > 还是 < code > 开发</ code > 模式,在脚本中判断</ h2 >
210+ < h2 id ="3-添加构建选项 "> < a aria-hidden ="true " tabindex ="-1 " href ="#3-添加构建选项 " class ="anchor "> < span class ="icon icon-link "> </ span > </ a > 3. 添加构建选项</ h2 >
211+ < p > 可以在构建前选择 < code > 生产</ code > 还是 < code > 开发</ code > 模式,在脚本中判断</ p >
209212 < img src ="imgs/9.png " width ="620 ">
210213 < h2 id ="4-选择-pipeline-script-from-scm-指定脚本位置 "> < a aria-hidden ="true " tabindex ="-1 " href ="#4-选择-pipeline-script-from-scm-指定脚本位置 " class ="anchor "> < span class ="icon icon-link "> </ span > </ a > 4. 选择 < code > Pipeline script from SCM</ code > 指定脚本位置</ h2 >
211214 < img src ="imgs/10.png " width ="620 ">
@@ -470,7 +473,7 @@ <h2 id="nodejs"><a aria-hidden="true" tabindex="-1" href="#nodejs" class="anchor
470473 < li > < a href ="#1-安装插件 " class ="tocs-link "> 1. 安装插件</ a > </ li >
471474 < li > < a href ="#2-添加凭证 " class ="tocs-link "> 2. 添加凭证</ a > </ li >
472475 < li > < a href ="#3-新建工作流 " class ="tocs-link "> 3. 新建工作流</ a > </ li >
473- < li > < a href ="#3-添加构建选项可以在构建前选择-生产-还是-开发-模式在脚本中判断 " class ="tocs-link "> 3. 添加构建选项,可以在构建前选择 生产 还是 开发 模式,在脚本中判断 </ a > </ li >
476+ < li > < a href ="#3-添加构建选项 " class ="tocs-link "> 3. 添加构建选项</ a > </ li >
474477 < li > < a href ="#4-选择-pipeline-script-from-scm-指定脚本位置 " class ="tocs-link "> 4. 选择 Pipeline script from SCM 指定脚本位置</ a > </ li >
475478 < li > < a href ="#nodejs " class ="tocs-link "> Nodejs</ a > </ li >
476479 </ ol >
0 commit comments