zoukankan      html  css  js  c++  java
  • grovvy pipeline 部署

    pipeline {
        agent any
        stages {
            stage('Checkout') {
                steps {
                    echo 'Checkout'
                    checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '15d8b7a3-ffa8-4fdc-a3bb-d4e2a1c741d8', url: 'git@git.cinyi.com:family-doctor/fd-admin.git']]])
                }
            }        
    
            stage('sonar质量管理') {
                steps {
                    echo 'sonar质量管理'
                    sh 'mvn clean verify sonar:sonar' 
                }
            }
            
            stage('mvn构建') {
                steps {
                    echo 'Building'
                    sh "mvn clean package -DskipTests -Dmaven.test.skip=true" 
                }
            }
            
            stage('Deploy') {
                steps {
                    echo 'Deploying'
                     sh "scp /root/.jenkins/workspace/family_Doctor_service_Version_deployment_new/family-web/target/*.tar.gz  root@192.168.20.197:/data/code/" 
                    sh 'ssh root@192.168.20.197 "/data/auto_pub.sh admin"'
                }
            }
        }
    }
  • 相关阅读:
    码云的安装和配置
    Python解释器安装教程和环境变量配置
    Python基础学习
    buuctf CheckIn
    各种小马收集
    buuctf Easysql 小记
    locust
    封装好的日志模块
    实用的测试网站
    列表操作
  • 原文地址:https://www.cnblogs.com/fengjian2016/p/7724532.html
Copyright © 2011-2022 走看看