Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
dev 923 B
pipeline {
    agent { label 'node2' }
    tools { nodejs 'node' }
    stages {
        stage('notify') {
            steps {
                script {
                    slack_send_start()
                }
            }
        }

        stage('build') {
            steps {
                sh '''
                sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-docs:latest . -f Dockerfile
                sudo docker push docker.registry.dawn.int:5000/dawn/dawn-docs:latest
            '''
            }
        }

        stage('deploy') {
            steps {
                upgradeKubernetes('dawn-docs', 'dev')
            }
        }
    }

    post {
        success {
            script {
                slack_send_success()
            }
        }
        failure {
            script {
                slack_send_failure()
            }
        }
    }
}