From 25baa542c0c3da1bfeff22c873374821c9133dc1 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 12:38:33 -0700 Subject: [PATCH 01/30] Adding CI Pipeline (Jenkinsfile) --- Jenkinsfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..7dd1b32bb4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent { + docker { + image 'node:6-alpine' + args '-p 3000:3000' + } + } + environment { + CI = 'true' + } + stages { + stage('Build') { + steps { + sh 'npm install' + } + } + stage('Test') { + steps { + sh './jenkins/scripts/test.sh' + } + } + } +} From 46150947f8ba8d0d4ee1c024e1b6b906f66e3625 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 12:41:07 -0700 Subject: [PATCH 02/30] chaning port to 3001 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7dd1b32bb4..044bc1717a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ pipeline { agent { docker { image 'node:6-alpine' - args '-p 3000:3000' + args '-p 3001:3001' } } environment { From 56406535e9a350ce7e10398c0100d5434248d03b Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 12:45:21 -0700 Subject: [PATCH 03/30] back to 3000 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 044bc1717a..7dd1b32bb4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ pipeline { agent { docker { image 'node:6-alpine' - args '-p 3001:3001' + args '-p 3000:3000' } } environment { From 07ed69424968214a3a25bfaa0398524487f38d2e Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:19:40 -0700 Subject: [PATCH 04/30] addin print --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 53720bdbbb..4999b72ca8 100644 --- a/package.json +++ b/package.json @@ -13,4 +13,8 @@ "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" } -} \ No newline at end of file + "name": "testremo", + "version": "0.1" { + "test": "print ciao" + } +} From eb6adda6cacf764bfce2c1af829e3124079011e6 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:22:47 -0700 Subject: [PATCH 05/30] fixing comma --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4999b72ca8..f378dfec98 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" - } + }, "name": "testremo", "version": "0.1" { "test": "print ciao" From 874a40f1dc916621b340d8d020a6de90cda7a249 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:27:01 -0700 Subject: [PATCH 06/30] extr --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f378dfec98..80948a0c36 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "eject": "react-scripts eject" }, "name": "testremo", - "version": "0.1" { + "version": "0.1", + "scripts": { "test": "print ciao" } } From acbe5faa4ffc6d51da34269930b6d3d9f2dc07ea Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:28:26 -0700 Subject: [PATCH 07/30] fix version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 80948a0c36..2c029daec0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "eject": "react-scripts eject" }, "name": "testremo", - "version": "0.1", + "version": "0.1.0", "scripts": { "test": "print ciao" } From f17d77d044599539d37d8ec13d9383702053aae1 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:32:47 -0700 Subject: [PATCH 08/30] change image --- Jenkinsfile | 8 ++++---- package.json | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7dd1b32bb4..f6112771d4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,8 @@ pipeline { agent { docker { - image 'node:6-alpine' - args '-p 3000:3000' + image 'itlinux:httpd-orange' + args '-p 80:80' } } environment { @@ -11,12 +11,12 @@ pipeline { stages { stage('Build') { steps { - sh 'npm install' + sh 'ping -c google.com' } } stage('Test') { steps { - sh './jenkins/scripts/test.sh' + sh 'curl localhost' } } } diff --git a/package.json b/package.json index 2c029daec0..9429268ca0 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,5 @@ "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" - }, - "name": "testremo", - "version": "0.1.0", - "scripts": { - "test": "print ciao" } } From fecbe27d8dc887ea4af750025277d1a1be99a51a Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:35:12 -0700 Subject: [PATCH 09/30] change 1 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f6112771d4..844096d13e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent { docker { - image 'itlinux:httpd-orange' + image 'itlinux/httpd-orange' args '-p 80:80' } } From 053ecf0a6e279a64fd341b6e07efdd315fdd05dc Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:37:43 -0700 Subject: [PATCH 10/30] change --- Jenkinsfile | 2 +- jenkins/scripts/test.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 844096d13e..254111ca90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { } stage('Test') { steps { - sh 'curl localhost' + sh './jenkins/scripts/test.sh' } } } diff --git a/jenkins/scripts/test.sh b/jenkins/scripts/test.sh index 360d00b94e..bf48340ce6 100755 --- a/jenkins/scripts/test.sh +++ b/jenkins/scripts/test.sh @@ -17,4 +17,5 @@ echo 'The following "npm" command tests that your simple Node.js/React' echo 'application renders satisfactorily. This command actually invokes the test' echo 'runner Jest (https://facebook.github.io/jest/).' set -x -npm test +# npm test +ping -c google.com From a9ca19fd74a2f6ebd011a112746d8999f2711ddc Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:40:06 -0700 Subject: [PATCH 11/30] adding 4 --- jenkins/scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/test.sh b/jenkins/scripts/test.sh index bf48340ce6..478de5e7e0 100755 --- a/jenkins/scripts/test.sh +++ b/jenkins/scripts/test.sh @@ -18,4 +18,4 @@ echo 'application renders satisfactorily. This command actually invokes the test echo 'runner Jest (https://facebook.github.io/jest/).' set -x # npm test -ping -c google.com +ping -c 4 google.com From 964f3aa50b460b27244fb5976e997d31502420a0 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:44:38 -0700 Subject: [PATCH 12/30] change to echo --- jenkins/scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/test.sh b/jenkins/scripts/test.sh index 478de5e7e0..3f845eb55d 100755 --- a/jenkins/scripts/test.sh +++ b/jenkins/scripts/test.sh @@ -18,4 +18,4 @@ echo 'application renders satisfactorily. This command actually invokes the test echo 'runner Jest (https://facebook.github.io/jest/).' set -x # npm test -ping -c 4 google.com +echo 'Ciao Remo Mattei' From cd48f0f3c174358cd040bc6c3fbd18c3c64e3b04 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:46:39 -0700 Subject: [PATCH 13/30] fixing -4 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 254111ca90..1647b4a774 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stages { stage('Build') { steps { - sh 'ping -c google.com' + sh 'ping -c 4 google.com' } } stage('Test') { From 786e857dac5a1480e88f7650ebf7f8aa10eea6bd Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:48:18 -0700 Subject: [PATCH 14/30] using curl --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1647b4a774..d4fd6d6830 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stages { stage('Build') { steps { - sh 'ping -c 4 google.com' + sh 'curl localhost' } } stage('Test') { From 9e7632adeed017f727a7295a6e78e06b5cfc19dd Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:49:27 -0700 Subject: [PATCH 15/30] chaning to google.com --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d4fd6d6830..3b3da4b10b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stages { stage('Build') { steps { - sh 'curl localhost' + sh 'curl -k https://google.com' } } stage('Test') { From 530ee9a28aab71ba4d6fb24f77ffa59c01aed8b2 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:56:45 -0700 Subject: [PATCH 16/30] changing script --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b3da4b10b..fb4c3bbe0e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,12 +11,12 @@ pipeline { stages { stage('Build') { steps { - sh 'curl -k https://google.com' + sh 'which bash' } } stage('Test') { steps { - sh './jenkins/scripts/test.sh' + sh './jenkins/scripts/remo.sh' } } } From 27bfdfe6f9c1d50d952f469ff52a75839c25590c Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:58:19 -0700 Subject: [PATCH 17/30] making 1 change --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb4c3bbe0e..4cff88be38 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stages { stage('Build') { steps { - sh 'which bash' + sh 'curl https://google.com' } } stage('Test') { From fe580b2c9b05f0a8961918757fbecbb7357577c9 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 20:59:09 -0700 Subject: [PATCH 18/30] adding script --- jenkins/scripts/remo.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 jenkins/scripts/remo.sh diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh new file mode 100755 index 0000000000..c7844dc1a5 --- /dev/null +++ b/jenkins/scripts/remo.sh @@ -0,0 +1,3 @@ +echo "Ciao Remo" +curl https://google.com +yum info vim From b550e4513af0c490e7203dec4f0a7a09205fe8ee Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Wed, 8 Apr 2020 21:01:19 -0700 Subject: [PATCH 19/30] adding -L --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4cff88be38..273f2a7db6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stages { stage('Build') { steps { - sh 'curl https://google.com' + sh 'curl -L https://google.com' } } stage('Test') { From 2d6d9a3e178dd08017c66aefb797d6bd93dd3a73 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sat, 10 Oct 2020 21:42:31 -0700 Subject: [PATCH 20/30] changing to ubuntu command --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index c7844dc1a5..fc63464f23 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,3 @@ echo "Ciao Remo" curl https://google.com -yum info vim +apt show vim From 7a1e2bab8b7eac6ccbc3438f55296e6db8978580 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sat, 10 Oct 2020 21:43:57 -0700 Subject: [PATCH 21/30] chaning command --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index fc63464f23..c774ca1af0 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,3 @@ echo "Ciao Remo" curl https://google.com -apt show vim +cat /etc/passwd From 74d6a25c796fab14da8b622a744bd1c27df59318 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sat, 10 Oct 2020 21:46:29 -0700 Subject: [PATCH 22/30] install tf --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index c774ca1af0..26a71d2132 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,3 @@ echo "Ciao Remo" curl https://google.com -cat /etc/passwd +apt-get update && sudo apt-get install terraform From be9e5aee9a9044fa671d16f905393a7983873040 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sat, 10 Oct 2020 21:49:31 -0700 Subject: [PATCH 23/30] tf with path --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index 26a71d2132..c7297d5877 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,3 @@ echo "Ciao Remo" curl https://google.com -apt-get update && sudo apt-get install terraform +sudo /usr/bin/apt update && sudo /usr/bin/apt-get install terraform From 67359b8b7605c477522717f089b8f076730c7a25 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sat, 10 Oct 2020 21:50:29 -0700 Subject: [PATCH 24/30] tf remove sudo --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index c7297d5877..29c746bacb 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,3 @@ echo "Ciao Remo" curl https://google.com -sudo /usr/bin/apt update && sudo /usr/bin/apt-get install terraform +/usr/bin/apt update && /usr/bin/apt-get install terraform From ff0fac6e6f75e06d7de90c4223a7e4827bcc0f18 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sun, 11 Oct 2020 00:07:01 -0700 Subject: [PATCH 25/30] curl tf --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index 29c746bacb..b7516053a3 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,3 @@ echo "Ciao Remo" curl https://google.com -/usr/bin/apt update && /usr/bin/apt-get install terraform +curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip From 50ca012b8e3a36cb47e7eb4be8c5e26a6acc572b Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sun, 11 Oct 2020 00:08:59 -0700 Subject: [PATCH 26/30] adding unzip --- jenkins/scripts/remo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index b7516053a3..f6da9d4846 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,3 +1,4 @@ echo "Ciao Remo" curl https://google.com curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip +unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip From 554d9bfc866a1fdf7bffb82b5e1db6a257c90d58 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sun, 11 Oct 2020 00:10:07 -0700 Subject: [PATCH 27/30] adding unzip path --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index f6da9d4846..2dfff04750 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,4 +1,4 @@ echo "Ciao Remo" curl https://google.com curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip -unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip +/usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip From c6981ddad8b4db7c6497c7cca290b5e0630fdabb Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sun, 11 Oct 2020 00:20:19 -0700 Subject: [PATCH 28/30] adding unzip sh --- jenkins/scripts/remo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index 2dfff04750..e596d85a5f 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,4 +1,4 @@ echo "Ciao Remo" curl https://google.com curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip -/usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip +sh "/usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip" From daa0c82ad37d0ca7d94364cedc40ada6f01b0e00 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sun, 11 Oct 2020 00:22:16 -0700 Subject: [PATCH 29/30] remove curl google --- jenkins/scripts/remo.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index e596d85a5f..034aa3c269 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,4 +1,2 @@ -echo "Ciao Remo" -curl https://google.com curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip sh "/usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip" From a0f8cbaa169fe43698b0dc1dd74fb81d86e66a68 Mon Sep 17 00:00:00 2001 From: Remo Mattei Date: Sun, 11 Oct 2020 00:35:21 -0700 Subject: [PATCH 30/30] adding ciao --- jenkins/scripts/remo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh index 034aa3c269..3103bfc86c 100755 --- a/jenkins/scripts/remo.sh +++ b/jenkins/scripts/remo.sh @@ -1,2 +1,3 @@ curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip -sh "/usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip" +bash -c /usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip +echo "ciao"