CI/CD pipeline scripting notes (CLONE +CLEAN+PACKAGE)

 pipeline {

    agent any

environment {

    PATH="${PATH}:/opt/maven/bin"

}

    stages {

        stage('CLONE') {

            steps {

                git branch: 'main', url: 'https://github.com/kk1567811/vansro22.git'

            }

        }

        

        stage('COMPILE') {

            steps {

                sh 'mvn compile'

            }

        }

        

        stage('TEST') {

            steps {

                sh 'mvn test'

            }

        }

        stage('PACKAGE') {

            steps {

                sh 'mvn package'

            }

        }

    }

}


Comments

Popular posts from this blog

Top 10 Git Commands

Kubernetes cluster setup NOTES step by step using minikube

SonarQube Installation & Configuration Step by step