diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..273f2a7db6 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent { + docker { + image 'itlinux/httpd-orange' + args '-p 80:80' + } + } + environment { + CI = 'true' + } + stages { + stage('Build') { + steps { + sh 'curl -L https://google.com' + } + } + stage('Test') { + steps { + sh './jenkins/scripts/remo.sh' + } + } + } +} diff --git a/jenkins/scripts/remo.sh b/jenkins/scripts/remo.sh new file mode 100755 index 0000000000..3103bfc86c --- /dev/null +++ b/jenkins/scripts/remo.sh @@ -0,0 +1,3 @@ +curl -o terraform_0.13.4.zip https://releases.hashicorp.com/terraform/0.13.4/terraform_0.13.4_linux_amd64.zip +bash -c /usr/bin/unzip -d /tmp/terraform /tmp/terraform_0.13.4.zip +echo "ciao" diff --git a/jenkins/scripts/test.sh b/jenkins/scripts/test.sh index 360d00b94e..3f845eb55d 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 +echo 'Ciao Remo Mattei' diff --git a/package.json b/package.json index 53720bdbbb..9429268ca0 100644 --- a/package.json +++ b/package.json @@ -13,4 +13,4 @@ "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" } -} \ No newline at end of file +}