From 48e6f03ede3d354ce8b3f5fbfdc78a3ea9f389b3 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 02:05:20 +0000 Subject: [PATCH 01/14] Add initial Jenkinsfile --- jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000000..14f0b741ab --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,15 @@ +pipeline { + agent { + docker { + image 'node:6-alpine' + args '-p 3000:3000' + } + } + stages { + stage('Build') { + steps { + sh 'npm install' + } + } + } +} From 0e76938c2e1d6983c3b04044a0cfcdac79f1136b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 02:09:13 +0000 Subject: [PATCH 02/14] Change to uppercase --- jenkinsfile => Jenkinsfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jenkinsfile => Jenkinsfile (100%) diff --git a/jenkinsfile b/Jenkinsfile similarity index 100% rename from jenkinsfile rename to Jenkinsfile From 15735ef540fdaf6b29c1347f510db4b88445ffbd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 02:21:08 +0000 Subject: [PATCH 03/14] remove the agent --- Jenkinsfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 14f0b741ab..dbc2ec9824 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,4 @@ pipeline { - agent { - docker { - image 'node:6-alpine' - args '-p 3000:3000' - } - } stages { stage('Build') { steps { From 828f4386f91c6c8963a4e51bdfb20531e0287717 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 02:23:16 +0000 Subject: [PATCH 04/14] Add agent --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index dbc2ec9824..d811217590 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ pipeline { + agent {} stages { stage('Build') { steps { From 09d09d8678adc19176deb866d2039dd3b5cf187f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 02:48:13 +0000 Subject: [PATCH 05/14] test --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d811217590..177e014ded 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent {} + agent any stages { stage('Build') { steps { From 0437e8533afee19b650eb855acaeda3a0e3dddfa Mon Sep 17 00:00:00 2001 From: Idam Satriya Adiguna Date: Thu, 7 Dec 2017 10:06:23 +0700 Subject: [PATCH 06/14] enhance gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index bd6911f1dd..e9269283f1 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,5 @@ typings/ # dotenv environment variables file .env + +/build \ No newline at end of file From 93f30dd332ca650f8ee2336849fbf83eba5c0cc2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 03:22:26 +0000 Subject: [PATCH 07/14] Add 'Test' stage --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 177e014ded..275543c115 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,18 @@ pipeline { agent any + environment { + CI = 'true' + } stages { stage('Build') { steps { sh 'npm install' } } + stage('Test') { + steps { + sh './jenkins/scripts/test.sh' + } + } } } From 84c717c7b23433e9b9befb5fc3da977c5d9370bd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2017 03:26:23 +0000 Subject: [PATCH 08/14] Add 'Deliver' stage --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 275543c115..311acb4737 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,5 +14,12 @@ pipeline { sh './jenkins/scripts/test.sh' } } + stage('Deliver') { + steps { + sh './jenkins/scripts/deliver.sh' + input message: 'Finished using the web site? (Click "Proceed" to continue)' + sh './jenkins/scripts/kill.sh' + } + } } } From 445cd1e9ec4839ed906524598abf26b015ce724c Mon Sep 17 00:00:00 2001 From: Idam Satriya Adiguna Date: Thu, 7 Dec 2017 12:14:41 +0700 Subject: [PATCH 09/14] add hello world --- src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.js b/src/App.js index 203067e4d7..491ddf6b93 100644 --- a/src/App.js +++ b/src/App.js @@ -9,6 +9,7 @@ class App extends Component {
logo

Welcome to React

+

Hello world!

To get started, edit src/App.js and save to reload. From c56ae91a3407c03c83e5c7b50544ddd87bc86b4b Mon Sep 17 00:00:00 2001 From: Idam Satriya Adiguna Date: Thu, 7 Dec 2017 12:17:52 +0700 Subject: [PATCH 10/14] add ! --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 491ddf6b93..3cce5ff744 100644 --- a/src/App.js +++ b/src/App.js @@ -9,7 +9,7 @@ class App extends Component {

logo

Welcome to React

-

Hello world!

+

Hello world!!

To get started, edit src/App.js and save to reload. From c87b8ddbf7a28bed6840a7fdec32dc97d245af5d Mon Sep 17 00:00:00 2001 From: isatriya Date: Thu, 7 Dec 2017 12:34:23 +0700 Subject: [PATCH 11/14] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3cce5ff744..3231be00f9 100644 --- a/src/App.js +++ b/src/App.js @@ -9,7 +9,7 @@ class App extends Component {

logo

Welcome to React

-

Hello world!!

+

Hello world!!!

To get started, edit src/App.js and save to reload. From 9dd212ff88fe554c9f5f78d3d5bd1116bc5a9e7c Mon Sep 17 00:00:00 2001 From: isatriya Date: Thu, 7 Dec 2017 12:38:06 +0700 Subject: [PATCH 12/14] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3231be00f9..90483402e3 100644 --- a/src/App.js +++ b/src/App.js @@ -9,7 +9,7 @@ class App extends Component {

logo

Welcome to React

-

Hello world!!!

+

Hello world!!!!

To get started, edit src/App.js and save to reload. From bb8e3de06eb1989cb1e53dae2cfb5a6e0b4e55c8 Mon Sep 17 00:00:00 2001 From: isatriya Date: Thu, 7 Dec 2017 12:43:07 +0700 Subject: [PATCH 13/14] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 90483402e3..491ddf6b93 100644 --- a/src/App.js +++ b/src/App.js @@ -9,7 +9,7 @@ class App extends Component {

logo

Welcome to React

-

Hello world!!!!

+

Hello world!

To get started, edit src/App.js and save to reload. From 51d3cee92cf6c9a25ffefad239a0078891d8b776 Mon Sep 17 00:00:00 2001 From: Idam Satriya Adiguna Date: Thu, 7 Dec 2017 12:46:25 +0700 Subject: [PATCH 14/14] add ! --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 491ddf6b93..3cce5ff744 100644 --- a/src/App.js +++ b/src/App.js @@ -9,7 +9,7 @@ class App extends Component {

logo

Welcome to React

-

Hello world!

+

Hello world!!

To get started, edit src/App.js and save to reload.