From 4ddd923e9c9026777d2795803f8f8fc6f7765555 Mon Sep 17 00:00:00 2001 From: Tucker Siegel <tgsiegel@terpmail.umd.edu> Date: Tue, 11 Oct 2022 14:45:45 -0400 Subject: [PATCH] fix --- dawn-gateway/staging | 46 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/dawn-gateway/staging b/dawn-gateway/staging index 86dd43e..e0239bc 100644 --- a/dawn-gateway/staging +++ b/dawn-gateway/staging @@ -1 +1,45 @@ -backendStagingServicePipeline "https://gitlab.cs.umd.edu/dawn/go-backend/dawn-gateway.git", "staging", "dawn-gateway" \ No newline at end of file +pipeline { + agent { label 'node2' } + tools { nodejs 'node' } + stages { + stage('notify') { + steps { + script { + slack_send_start() + } + } + } + + stage('build') { + steps { + git branch: 'staging', + credentialsId: 'tucker-gitlab-login', + url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-gateway.git' + + sh ''' + sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-gateway:latest . -f Dockerfile + sudo docker push docker.registry.dawn.int:5000/dawn/dawn-gateway:latest + ''' + } + } + + stage('deploy') { + steps { + upgradeKubernetes('dawn-gateway', 'staging') + } + } + } + + post { + success { + script { + slack_send_success() + } + } + failure { + script { + slack_send_failure() + } + } + } +} -- GitLab