Tencent build project image

1.jenkins build job

 

2.Configure

3.Scan MultiplePipeline Now, Scan MultiplePipeline log

4.Bitbucket where configure to link with bitucket?

5.Define JenkinsFile with Shared_libaray service_name 

#!groovy
library identifier: 'jenkins-shared-lib@tc/v3', retriever: modernSCM(
  [$class       : 'GitSCMSource',
   remote       : 'git@bitbucket.org:english1/jenkins-shared-lib.git',
   credentialsId: 'devops.kt'])

sharedCIPipelineBuildDockerAndPush {
  podTemplate = ktPodTemplate('docker': true)

  service = 'api-auto-test'
  serviceName = 'api-auto-test'
  imageRepo = 'edtech-kt/api-auto-test'
  registries = ['TC_CN': true, 'AWS_CN': false, 'AWS_SG': false]

  deployTo = ['CN':true, 'SG':false]
  qaDeployJob = "KT-API-AUTO_TEST-CN-DEPLOY"
  stgDeployJob = "KT-API-AUTO_TEST-STG-CN-DEPLOY"

  teamsConnectorName = 'Platform Channel'
  teamsConnectorUrl = 'https://outlook.office.com/webhook/a7f32c1d-faf5-4e70-9b87-c1553ce93d97@f0d1c6fd-dff0-486a-8e91-cfefefc7d98d/JenkinsCI/d1eecb1befc04b00af2dc4a275959ac8/6034223b-343c-4dc8-8cd6-f71f41659b6c'
}

DockerFile :

services:
  api-auto-test:
    image: edtech-kt/api-auto-test:${IMAGE_TAG}
    build:
      context: ./
      dockerfile: ./Dockerfile
      network: host

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值