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

Commit

Permalink
Add Jenkinsfile for news-aggregation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed Apr 4, 2024
1 parent 5e9197e commit ebeaed9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions next/news-aggregation/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pipeline {
agent any
tools {
nodejs "NodeJS"
}
stages {
stage('Install') {
steps {
sh 'npm install'
}
}
parrallel {
stage('Run API') {
steps {
dir('newAPI/src') {
sh 'ts-node index.ts'
}
}
}
stage('Run Web Site') {
steps {
dir('next/news-aggregation') {
sh 'npm run dev'
}
}
}
input message: 'Finished using the web site? (Click "Proceed" to continue)'
}
}
}

0 comments on commit ebeaed9

Please sign in to comment.