From 7073019a2ea6ca361c6a43f9ab073f440b94a5ba Mon Sep 17 00:00:00 2001 From: CarlosNasayo Date: Thu, 2 Nov 2023 09:32:21 -0500 Subject: [PATCH] pipeline updated --- jenkinsfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 6abfb36..03d64f7 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -31,21 +31,12 @@ pipeline { script { sshCommand remote: remote, command: """ cd /var/www/waterpointsapi/ - sudo kill -9 $(sudo ss -tuln | grep ':5000' | awk '{print $5}' | cut -d ':' -f 1) - rm -fr api_backup_\$(date +"%Y%m%d") - mv api api_backup_\$(date +"%Y%m%d") - rm -fr releaseApi.zip - curl -LOk https://github.com/CIAT-DAPA/lswms_webapi/releases/latest/download/releaseApi.zip - unzip -o releaseApi.zip - rm -fr releaseApi.zip - mkdir api - mv src/* api - rm -fr src + mkdir prueba """ } } } - stage('Init Api') { + /* stage('Init Api') { steps { script { sshCommand remote: remote, command: """ @@ -59,7 +50,7 @@ pipeline { """ } } - } + } */ } post {