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

Commit

Permalink
comments in Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed Apr 11, 2024
1 parent 92d1507 commit 6cdeafd
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions Jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,34 @@ pipeline {
}
}
}
stage('Remote git pull') {
steps {
script {
sshagent(['nial-ssh-creds']) {
sh "ssh -o StrictHostKeyChecking=no [email protected] 'cd TSI && git pull'"
}
}
}
}
stage('Deploy') {
steps {
script {
sshagent(['nial-ssh-creds']) {
sh "ssh -o StrictHostKeyChecking=no [email protected] 'screen -d -m && cd TSI/next/news-aggregation && npm install && sudo npm run dev -- -p 80 -H 0.0.0.0'"
}
}
}
}
stage('OWASP ZAP')
steps {
script {
startZap(
host: '13.49.230.240',
port: 80,
zapHome: '/opt/zaproxy',
)
}
}
// stage('Remote git pull') {
// steps {
// script {
// sshagent(['nial-ssh-creds']) {
// sh "ssh -o StrictHostKeyChecking=no [email protected] 'cd TSI && git pull'"
// }
// }
// }
// }
// stage('Deploy') {
// steps {
// script {
// sshagent(['nial-ssh-creds']) {
// sh "ssh -o StrictHostKeyChecking=no [email protected] 'screen -d -m && cd TSI/next/news-aggregation && npm install && sudo npm run dev -- -p 80 -H 0.0.0.0'"
// }
// }
// }
// }
// stage('OWASP ZAP')
// steps {
// script {
// startZap(
// host: '13.49.230.240',
// port: 80,
// zapHome: '/opt/zaproxy',
// )
// }
// }
stage('jest') {
steps {
dir ('next/news-aggregation') {
Expand Down

0 comments on commit 6cdeafd

Please sign in to comment.