Skip to content

Commit

Permalink
Merge pull request #14 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
pipeline updated
  • Loading branch information
CarlosNasayo authored Nov 2, 2023
2 parents 8f1ada1 + 7073019 commit dcbcf9c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: """
Expand All @@ -59,7 +50,7 @@ pipeline {
"""
}
}
}
} */
}

post {
Expand Down

0 comments on commit dcbcf9c

Please sign in to comment.