diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..cdb528d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,49 @@ +pipeline { + agent { + docker { + image 'node:14' // Use the desired Node.js version + } + } + environment { + HOME = '.' + } + + stages { + stage('Install Dependencies') { + steps { + script { + sh 'npm install' + } + } + } + + stage('Build') { + steps { + script { + sh 'npm run build' + } + } + } + + stage('Run Local Test Version') { + steps { + script { + // Assuming you have a script to start your application locally + sh 'npm run watch' + } + } + } + + // Add other stages as needed + + } + + post { + success { + echo 'Pipeline succeeded!' + } + failure { + echo 'Pipeline failed!' + } + } +} \ No newline at end of file