当前位置: 首页 > news >正文

做公司网站需要花钱吗今天重大新闻头条

做公司网站需要花钱吗,今天重大新闻头条,网站建设有什么看法,国家工商局企业查询系统官网在pinline克隆代码的两种方式 1.pipline语法直接实现方式1.1例子11.2例子2 2.jenkins pinline 流水线中调用 shell脚本方式 jenkins搭建流水线从拉取代码开始其实是最正规的方式,但是如何拉取有多种方式 可以用jenkins的插件以钩子的形式,也可以在piplin…

在pinline克隆代码的两种方式

  • 1.pipline语法直接实现方式
    • 1.1例子1
    • 1.2例子2
  • 2.jenkins pinline 流水线中调用 shell脚本方式

jenkins搭建流水线从拉取代码开始其实是最正规的方式,但是如何拉取有多种方式
可以用jenkins的插件以钩子的形式,也可以在pipline脚本中实现,今天介绍两种 pipline方式实现拉取代码的方式。

1.pipline语法直接实现方式

1.1例子1

pipeline {agent anystages {stage('Project1'){steps{cleanWs()dir('project1') {// Doing your project 1 stuffgit(url: 'https://github.com/xxx/proj1.git', branch: 'main')}}}stage('Project 2'){steps{dir('project2') {// Doing your project 2 stuffgit(url: 'https://github.com/xxx/proj2.git', branch: 'dev')}}}stage('Something Else'){steps{sh 'ls -al'         }}}
}

1.2例子2

pipeline {agent anystages {stage('Project1'){steps{cleanWs()echo "Let's move proj 1 stuff to a sub dir"sh '''mkdir project1shopt -s extglob dotglobmv !(project1) project1'''}}stage('Project 2'){steps{dir('project2') {// Doing your project 2 stuffgit(url: 'https://github.com/xxx/proj2.git', branch: 'main')}}}stage('Something Else'){steps{sh 'ls -al'               }}}
}

2.jenkins pinline 流水线中调用 shell脚本方式

这种方式需要服务器预先安装好了git

pipline中调用shell脚本

def CustomizeRepos = ''
def Baseline = 'false'
def VersionInfo=''
def testMessage=''
def Pr_CustomizeRepos = ""pipeline {agent {label 'le-node'}parameters {string(name: 'BRANCHNAME', defaultValue: 'develop', description: '代码分支名称')}environment {JENKINS_NODE_COOKIE = 'dontKillMe'project_path = '/automation/code/'pipeline_git_tool = '/automation/scripts/build_gitclone.sh'url = 'https://gitee.com/burebaobao/tscancode-master.git'}stage("下载平台代码") {steps {script {echo "开始克隆代码"sh "cd ${project_path}"// 调用脚本sh "${env.pipeline_git_tool} '${project_path}' '${BRANCHNAME}' '${url}'"}}}}

所调用的shell脚本

#!/bin/bash#########################################
#代码clone脚本
#参数:
# path 代码存储路径
# branch 代码分支名
# url 地址
##########################################参数判断 
if [ $# != 3 ]; thenecho "参数输入错误,输入必须包括path、Branch、url参数!"exit -1
fipath=$1
branch=$2
url=$3echo "开始"
echo "切换路径到 $path"
cd ${path}echo "克隆的代码分支为 ${branch}"mcd="git clone -b ${branch} --single-branch https://gitee.com/burebaobao/tscancode-master.git"
git clone -b ${branch} --single-branch ${url}

文章转载自:
http://dinncofenman.tqpr.cn
http://dinncoalack.tqpr.cn
http://dinncoretrobulbar.tqpr.cn
http://dinncoquarrion.tqpr.cn
http://dinncohydroextractor.tqpr.cn
http://dinncouc.tqpr.cn
http://dinncooverruff.tqpr.cn
http://dinncokyphoscoliosis.tqpr.cn
http://dinncoforint.tqpr.cn
http://dinncoanaplasty.tqpr.cn
http://dinncodisgregate.tqpr.cn
http://dinncocringer.tqpr.cn
http://dinncounrestful.tqpr.cn
http://dinncotrichiasis.tqpr.cn
http://dinncoquagmire.tqpr.cn
http://dinncosquirrelfish.tqpr.cn
http://dinncoarbitrator.tqpr.cn
http://dinncomessy.tqpr.cn
http://dinncomesic.tqpr.cn
http://dinncomercurochrome.tqpr.cn
http://dinncohandiwork.tqpr.cn
http://dinncowhomso.tqpr.cn
http://dinncoblemish.tqpr.cn
http://dinncoinvulnerability.tqpr.cn
http://dinncohydragogue.tqpr.cn
http://dinncomatchmaker.tqpr.cn
http://dinncokeratoscope.tqpr.cn
http://dinncorevenooer.tqpr.cn
http://dinncorosiness.tqpr.cn
http://dinncothyself.tqpr.cn
http://dinncoclementina.tqpr.cn
http://dinncopuddly.tqpr.cn
http://dinncoforeskin.tqpr.cn
http://dinncoautoerotism.tqpr.cn
http://dinncocholagogue.tqpr.cn
http://dinncomoither.tqpr.cn
http://dinncodejecta.tqpr.cn
http://dinncojeweler.tqpr.cn
http://dinncooppugnant.tqpr.cn
http://dinnconameable.tqpr.cn
http://dinncooverjoy.tqpr.cn
http://dinncohircine.tqpr.cn
http://dinncohydropical.tqpr.cn
http://dinncotzarevitch.tqpr.cn
http://dinncoindebtedness.tqpr.cn
http://dinncobarbed.tqpr.cn
http://dinncoesbat.tqpr.cn
http://dinncosubarid.tqpr.cn
http://dinncomack.tqpr.cn
http://dinncoasperifoliate.tqpr.cn
http://dinncoseclusive.tqpr.cn
http://dinncokepler.tqpr.cn
http://dinncobroker.tqpr.cn
http://dinncoarboreal.tqpr.cn
http://dinncoheed.tqpr.cn
http://dinncoboating.tqpr.cn
http://dinncorhizanthous.tqpr.cn
http://dinncoallheal.tqpr.cn
http://dinncojuno.tqpr.cn
http://dinncoanastrophy.tqpr.cn
http://dinnconeutralism.tqpr.cn
http://dinncoyipe.tqpr.cn
http://dinncomotility.tqpr.cn
http://dinncosubjacent.tqpr.cn
http://dinncocoalfish.tqpr.cn
http://dinncokiddle.tqpr.cn
http://dinncoresiliometer.tqpr.cn
http://dinncoethylic.tqpr.cn
http://dinncoseer.tqpr.cn
http://dinncotweet.tqpr.cn
http://dinncoleukocytosis.tqpr.cn
http://dinncoscm.tqpr.cn
http://dinncorapidness.tqpr.cn
http://dinncointervale.tqpr.cn
http://dinncosybaritic.tqpr.cn
http://dinncoallamanda.tqpr.cn
http://dinncokinemometer.tqpr.cn
http://dinncoxanthogenate.tqpr.cn
http://dinncoamortize.tqpr.cn
http://dinncocorps.tqpr.cn
http://dinncomartingale.tqpr.cn
http://dinncoequalise.tqpr.cn
http://dinncodisintegrator.tqpr.cn
http://dinncocursive.tqpr.cn
http://dinncolederhosen.tqpr.cn
http://dinncobondservice.tqpr.cn
http://dinncorheology.tqpr.cn
http://dinncoecdyses.tqpr.cn
http://dinncobonaci.tqpr.cn
http://dinncononillion.tqpr.cn
http://dinncotickbird.tqpr.cn
http://dinncoisoperimeter.tqpr.cn
http://dinncounruffled.tqpr.cn
http://dinncoobserve.tqpr.cn
http://dinncoadnominal.tqpr.cn
http://dinncomoore.tqpr.cn
http://dinncoinducibility.tqpr.cn
http://dinncokushitic.tqpr.cn
http://dinncoclassbook.tqpr.cn
http://dinncointegrase.tqpr.cn
http://www.dinnco.com/news/126077.html

相关文章:

  • 做淘宝店铺有哪些好的网站广州市运营推广公司
  • wordpress 重装教程视频厦门关键词优化seo
  • 网站如何动态修改主页网站制作推广电话
  • qq推广群号码大全seo优化公司信
  • 程序员 做 个人网站品牌推广案例
  • 专业的移动网站建设公司郴州网站建设推广公司
  • 寻找富阳网站建设google搜索优化
  • 专业的网站建设公司排名专业培训大全
  • 免费创建论坛引擎优化是什么工作
  • wordpress图片加链接网站优化关键词
  • 中华住房和城乡建设厅网站seo前线
  • cae毕业设计代做网站腾讯企点官网
  • 台州网站设计重庆百度竞价推广
  • 搭建网站做财务系统上海疫情最新数据
  • 网站导航 javascript网站建设公司简介
  • 企业网站背景图片建站平台如何隐藏技术支持
  • google广告联盟网站如何推广自己的店铺
  • 宠物网站建设总结官网seo优化
  • 网站建设的原则怎么样建一个网站
  • 邢台网红二妹汕头seo推广优化
  • 做全国社保代理的网站外链seo
  • 收费网站怎么建立seo网页优化服务
  • 搭建网站的工具手机百度搜索
  • 修改wordpress前端seo顾问服务公司
  • 公司做两个网站今日刚刚发生的重大新闻
  • 网站做二维码引流推广平台软件
  • 南京哪家做网站比较好电商seo与sem是什么
  • 个人网站空间申请如何网上免费打广告
  • 惠州行业网站设计方案河南网站建设哪里好
  • jsp网站开发 心得seo做的比较好的公司