Skip to content

sri #33

Description

@24p61a6765-hub

pipeline {
tools {
maven "mymaven"
}

agent any

stages {

    stage('checkout code') {
        steps {
            echo 'Cloning the repo'
            git 'https://github.com/Sonal0409/DevOpsCodeDemo.git'
        }
    }

    stage('complete') {
        steps {
            echo 'Compile the code'
            sh 'mvn compile'
        }
    }

    stage('codereview') {
        steps {
            echo 'Code review'
            sh 'mvn pmd:pmd'
        }
    }

    stage('unitest') {
        steps {
            echo 'Running unit tests'
            sh 'mvn test'
        }
    }

    stage('package') {
        steps {
            echo 'Creating package'
            sh 'mvn package'
        }
    }
}

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions