Skip to content
Somkiat Puisungnoen edited this page Jun 29, 2021 · 1 revision

Jenkins pipeline example

pipeline {
    agent any

    stages {
        stage('Pull code from git') {
            steps {
                git 'https://github.com/up1/workshop-java-web-tdd.git'
            }
        }
        stage('Build and test') {
            steps {
                sh 'mvnw clean test'
            }
        }
        stage('Package war file') {
            steps {
                sh 'echo "test"'
            }
        }
        stage('Deploy to server') {
            steps {
                sh 'echo "test"'
            }
        }
        stage('API testing with newman') {
            steps {
                sh 'echo "test"'
            }
        }
    }
}

Clone this wiki locally