From d0101a4e77b1055ac66d7df5886043657f44e824 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Tue, 1 Apr 2025 22:25:04 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a99daee..63596f5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,9 +11,10 @@ pipeline { } stage('Deploy') { steps { - withCredentials([string(credentialsId: 'google-email-apps-password', variable: 'GOOGLE_APP_PASSWORD')]) { + withCredentials([usernamePassword(credentialsId: 'google-email-apps-password', passwordVariable: 'GMAIL_APP_PASSWORD', usernameVariable: 'GMAIL_EMAIL')]) { + sh """ - GOOGLE_APP_PASSWORD="${GOOGLE_APP_PASSWORD}" COMPOSE_PROJECT_NAME=${PROJECT_NAME} docker compose up -d --force-recreate + GMAIL_APP_PASSWORD="${GMAIL_APP_PASSWORD}" GMAIL_EMAIL=${GMAIL_EMAIL} COMPOSE_PROJECT_NAME=${PROJECT_NAME} docker compose up -d --force-recreate """ } }