0
点赞
收藏
分享

微信扫一扫

使用pipeline集成部署springboot项目

火热如冰 2022-02-10 阅读 54
mavenspring

pipeline{
    agent any
    environment {
        RESPOSITORY='https://xxxxx.git'
    }
    stages {
        stage('git clone') {
            steps {
                echo "start git clone........."
                git credentialsId:'xxxxxxx', url:"${RESPOSITORY}",branch:"${NODE_NAME}"
             }
        }
        stage("maven build") {
            steps {
                echo 'build code ..............'
                withMaven (
                    maven: 'maven',
                    mavenLocalRepo: '.repository') {
                        sh 'mvn clean package -Dmaven.test.skip=true'
                    }
            }
        }

    }

举报

相关推荐

0 条评论