From 5379936f896255f120903c4c42dfb68d0cb62334 Mon Sep 17 00:00:00 2001 From: Sutheera Date: Mon, 28 Aug 2023 00:09:19 +0700 Subject: [PATCH 01/28] no message --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..8a8af60573 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,15 @@ +pipeline { + agent { + docker { + image 'node:18.17.1-alpine3.18' + args '-p 3000:3000' + } + } + stages { + stage('Build') { + steps { + sh 'npm install' + } + } + } +} \ No newline at end of file From e3047e06578652e48de98b9870f08308af209fc4 Mon Sep 17 00:00:00 2001 From: Sutheera Date: Mon, 28 Aug 2023 14:00:00 +0700 Subject: [PATCH 02/28] jenkins --- Jenkinsfile | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8a8af60573..5b2e173ad9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,30 @@ pipeline { agent { docker { - image 'node:18.17.1-alpine3.18' - args '-p 3000:3000' + image 'node:lts-buster-slim' + args '-p 3000:3000' } } + environment { + CI = 'true' + } stages { - stage('Build') { + stage('Build') { + steps { + sh 'npm install' + } + } + stage('Test') { + steps { + sh './jenkins/scripts/test.sh' + } + } + stage('Deliver') { steps { - sh 'npm install' + sh './jenkins/scripts/deliver.sh' + input message: 'Finished using the web site? (Click "Proceed" to continue)' + sh './jenkins/scripts/kill.sh' } } } -} \ No newline at end of file +} From 65d812d1326d37722d0c7f1091c0f80fcf9a19ae Mon Sep 17 00:00:00 2001 From: Rain Date: Mon, 28 Aug 2023 14:45:53 +0700 Subject: [PATCH 03/28] Update index.html --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 7bee027101..66f149cc69 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + React App Jenkins