From 7d8b61cb1db58af1a37f777870ab4bb4af80246f Mon Sep 17 00:00:00 2001 From: FaniryArilanto Date: Thu, 7 Aug 2025 18:39:53 +0300 Subject: [PATCH] add semi cicd on dv-thanato production --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2187210..1b37eed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,5 +9,14 @@ pipeline { sudo su jenkins -c "git stash && git pull origin staging" ''' } } + + stage ("deploy to prod dv-thanato") { + when { branch 'production-dv-thanato' } + agent { label 'apache && dev'} + steps { + input 'Do you approve deployment?' + sh ''' ssh -i ${SOTTYE_DVTHANATO_SSHKEY} ${SOTTYE_DVTHANATO_SSHUSER}@${SOTTYE_DVTHANATO_IPSERVER} "cd ${SOTTYE_DVTHANATO_PATH} && git pull origin production-dv-thanato" ''' + } + } } }