Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Update Jenkinsfile with simplified SSH commands for git pull and npm …
Browse files Browse the repository at this point in the history
…run dev
  • Loading branch information
nmcc1212 committed Apr 5, 2024
1 parent f02b664 commit dbceb24
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,14 @@ pipeline {
stage('Remote git pull') {
steps {
script {
sshagent(['nial-ssh-creds']) {
sh "ssh -i ${SSH_KEY} [email protected] 'cd TSI && git pull'"
}
sh "ssh -i ${SSH_KEY} [email protected] 'cd TSI && git pull'"
}
}
}
stage('Deploy') {
steps {
script {
sshagent(['nial-ssh-creds']) {
sh "ssh -i ${SSH_KEY} [email protected] 'screen && cd TSI/next/news-aggregation && npm run dev'"
}
sh "ssh -i ${SSH_KEY} [email protected] 'screen && cd TSI/next/news-aggregation && npm run dev'"
}
}
}
Expand Down

0 comments on commit dbceb24

Please sign in to comment.