pipeline

作者: 夏天_9b7d | 来源:发表于2020-05-22 12:13 被阅读0次

    pipeline 示例文件

    pipeline {
        
        environment {
        MSBUILD = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe"
        CONFIG = 'Release'
        PLATFORM = '86'
      }
      
        agent any 
        stages {
            stage('pull') { 
                steps {
                    checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '821f0827-c881-4a6b-9c39-5628e290c5d1', url: 'git@192.168.1.208:root/hellocpp_line.git']]])
      
                }
            }
            
              
          stage('Build') { 
                steps {
                    //bat "NuGet.exe restore RemoteDrive.sln"
                    bat "\"${MSBUILD}\" hellocpp.sln /p:Configuration=Release;Platform=x86"
          
                }
            }
            
        }
    }
    

    environment 指定编译环境

    相关文章

      网友评论

          本文标题:pipeline

          本文链接:https://www.haomeiwen.com/subject/bvtqahtx.html