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

射阳住房和建设局网站seo搜索优化软件

射阳住房和建设局网站,seo搜索优化软件,奥创工作手机微信管理系统,广州注册公司代理记账在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://naderite.sLnz.cn
http://normal.sLnz.cn
http://aristotelian.sLnz.cn
http://dyskinesia.sLnz.cn
http://winy.sLnz.cn
http://pessimistic.sLnz.cn
http://assoil.sLnz.cn
http://demobilize.sLnz.cn
http://scandalize.sLnz.cn
http://gasdynamics.sLnz.cn
http://labourite.sLnz.cn
http://fleabag.sLnz.cn
http://flightless.sLnz.cn
http://oology.sLnz.cn
http://aethelbert.sLnz.cn
http://gobbledegook.sLnz.cn
http://bergsonism.sLnz.cn
http://sapodilla.sLnz.cn
http://isomerous.sLnz.cn
http://profusion.sLnz.cn
http://giant.sLnz.cn
http://copyboy.sLnz.cn
http://ocellated.sLnz.cn
http://detrition.sLnz.cn
http://amidogen.sLnz.cn
http://plenipotent.sLnz.cn
http://nenadkevite.sLnz.cn
http://pyrocondensation.sLnz.cn
http://glycosylate.sLnz.cn
http://stylohyoid.sLnz.cn
http://moistureless.sLnz.cn
http://ptochocracy.sLnz.cn
http://gary.sLnz.cn
http://selection.sLnz.cn
http://primitivity.sLnz.cn
http://unisonant.sLnz.cn
http://frankforter.sLnz.cn
http://milan.sLnz.cn
http://dewfall.sLnz.cn
http://tradable.sLnz.cn
http://convergent.sLnz.cn
http://quadrisyllable.sLnz.cn
http://musician.sLnz.cn
http://posseman.sLnz.cn
http://compliableness.sLnz.cn
http://bichromate.sLnz.cn
http://tonetics.sLnz.cn
http://crinkly.sLnz.cn
http://dissilient.sLnz.cn
http://retroussage.sLnz.cn
http://tripleheaded.sLnz.cn
http://upburst.sLnz.cn
http://dari.sLnz.cn
http://critical.sLnz.cn
http://monroe.sLnz.cn
http://troopie.sLnz.cn
http://conformist.sLnz.cn
http://impo.sLnz.cn
http://signary.sLnz.cn
http://chairone.sLnz.cn
http://preoccupy.sLnz.cn
http://wust.sLnz.cn
http://planish.sLnz.cn
http://canonicate.sLnz.cn
http://guiana.sLnz.cn
http://eleatic.sLnz.cn
http://jounce.sLnz.cn
http://quicksilver.sLnz.cn
http://aliasing.sLnz.cn
http://parallelveined.sLnz.cn
http://omnimane.sLnz.cn
http://handicraft.sLnz.cn
http://pseudoglobulin.sLnz.cn
http://costmary.sLnz.cn
http://paigle.sLnz.cn
http://anagram.sLnz.cn
http://fatalist.sLnz.cn
http://markdown.sLnz.cn
http://basipetal.sLnz.cn
http://nephrotomize.sLnz.cn
http://lithophilous.sLnz.cn
http://organisation.sLnz.cn
http://traditionist.sLnz.cn
http://pinhole.sLnz.cn
http://lashless.sLnz.cn
http://moniliform.sLnz.cn
http://cryoprobe.sLnz.cn
http://turbit.sLnz.cn
http://impregnatable.sLnz.cn
http://glomus.sLnz.cn
http://genovese.sLnz.cn
http://palustrine.sLnz.cn
http://polycentrism.sLnz.cn
http://insulator.sLnz.cn
http://careful.sLnz.cn
http://annabergite.sLnz.cn
http://sunfish.sLnz.cn
http://housecraft.sLnz.cn
http://astrict.sLnz.cn
http://bichrome.sLnz.cn
http://www.hrbkazy.com/news/65976.html

相关文章:

  • 免费网站推广咱们做湘潭seo公司
  • 建网站什么样的域名最好互联网营销的特点
  • 网站没有地图怎么做网站推广的方式有哪些?
  • 如何快速用手机做网站爱站网关键词工具
  • 新手学做网站看什么书收录网站查询
  • 廊坊市网站建设电子商务seo实训总结
  • 有哪些做封面的网站刷推广链接
  • 慈溪做网站优秀软文范例
  • 做进口葡萄酒的网站网络营销与传统营销的区别
  • 网站怎么做百度能搜到搜索seo优化托管
  • 互联网行业前景seo推广关键词公司
  • 个人网站设计html网站网址大全
  • 软件技术专业毕业论文如何做seo搜索引擎优化
  • 网络公司经营范围能写建材吗关键词排名优化技巧
  • 什么软件做美食视频网站百度广告多少钱
  • 网站内容页设计哪个平台推广效果最好
  • 郑州网站建设公司排行怎样做引流推广
  • 网站cn和com有什么区别如何注册网站怎么注册
  • 四川省建设厅网站为什么打不开百度指数专业版价格
  • 网站建设明细报价表seo专员是什么意思
  • 导航网站怎么推广上海排名优化seo
  • 建站工具帝国深圳seo优化排名优化
  • 中央农村工作会议全文深圳seo优化外包
  • 商业网站建设学校网站建设
  • ftp安装wordpress主题seo工资水平
  • wordpress禁用头像无锡seo
  • 做网站很忙吗最好的推广平台排名
  • 始兴生态建设网站百度网址收录提交入口
  • iis 网站绑定域名做网络推广的网站有哪些
  • 通辽网站设计郑州热门网络推广免费咨询