Thursday, April 11, 2024

Scripted Pipeline

 node {
    stage('Build') {
        echo 'Building...'
        git changelog: false, poll: false, url: 'https://github.com/kishoraswar22/spring-boot-war-example.git'
    }
    
    stage('Test') {
        echo 'Testing...'
        // This stage could include commands to run your tests
    }
    
    stage('Deploy') {
        echo 'Deploying...'
        // This stage could include commands to deploy your application
    }

    try {
        echo 'Pipeline execution completed successfully.'
    } catch (err) {
        echo "Pipeline failed: ${err}"
    }
}


      

No comments:

Post a Comment

Sample Game App Deployment on EKS cluster

 https://padmakshi.medium.com/setting-up-an-eks-cluster-and-deploying-a-game-application-a-step-by-step-guide-08790e0be117