diff --git a/next/news-aggregation/Jenkinsfile b/next/news-aggregation/Jenkinsfile new file mode 100644 index 0000000..1e25cc4 --- /dev/null +++ b/next/news-aggregation/Jenkinsfile @@ -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)' + } + } +}