Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting Multiple Deployments in a single build #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karthikjayaraman80
Copy link

@karthikjayaraman80 karthikjayaraman80 commented Sep 11, 2020

Consider` a job that deploys to multiple environments. The View only shows the details of the first environment. The change enables all the environment deployments for a single build.

Sample Jenkins pipeline that deploys to multiple environments:

pipeline` {
    agent any
    stages {
        stage('Deploy to DEV') {
            steps {
                input message: 'Deploy to DEV'
            addDeployToDashboard(env: 'DEV', buildNumber: "$BUILD_NUMBER")
            }
            
        }
        
        stage('Deploy to QA') {
            steps {
                input message: 'Deploy to QA'
            addDeployToDashboard(env: 'QA', buildNumber: "$BUILD_NUMBER")
            }
            
        }
        
        stage('Deploy to PROD') {
            steps {
                input message: 'Deploy to PROD'
            addDeployToDashboard(env: 'PROD', buildNumber: "$BUILD_NUMBER")
            }
            
        }
    }
}

Consider a job that deploys to multiple environments. The View only shows the details of the first environment. The change enables all the environment deployments for a single build.

Sample Jenkins pipeline that deploys to multiple environments:
pipeline {
    agent any
    stages {
        stage('Deploy to DEV') {
            steps {
                input message: 'Deploy to DEV'
            addDeployToDashboard(env: 'DEV', buildNumber: "$BUILD_NUMBER")
            }

        }

        stage('Deploy to QA') {
            steps {
                input message: 'Deploy to QA'
            addDeployToDashboard(env: 'QA', buildNumber: "$BUILD_NUMBER")
            }

        }

        stage('Deploy to PROD') {
            steps {
                input message: 'Deploy to PROD'
            addDeployToDashboard(env: 'PROD', buildNumber: "$BUILD_NUMBER")
            }

        }
    }
}

Signed-off-by: Karthik Jayaraman <[email protected]>
@gungorugur
Copy link

We also need this feature.

@stuartmallan
Copy link

I would also like to see this feature added

waptaff added a commit to waptaff/deploy-dashboard-plugin that referenced this pull request Apr 24, 2022
This is a port to 0.0.9 of the similar pull request found at
jenkinsci#5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants