From 4207609bae30b0bd3a4a269d6bd3a8fec6a1d359 Mon Sep 17 00:00:00 2001 From: pekkakas <60649384+pekkakas@users.noreply.github.com> Date: Wed, 5 Feb 2020 09:54:53 +0200 Subject: [PATCH 1/2] Add files via upload From acb534bf801c5c9d2b62637a369568deb0d9a859 Mon Sep 17 00:00:00 2001 From: pekkakas <60649384+pekkakas@users.noreply.github.com> Date: Wed, 5 Feb 2020 10:53:16 +0200 Subject: [PATCH 2/2] Added Jenkinsfile --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1941b57 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +pipeline { + agent { + docker { + image 'node:8-alpine' + args 'Args: -p 3000:3000' + } + + } + stages { + stage('Build') { + environment { + Build = '' + } + steps { + sh 'npm install' + } + } + + stage('Test') { + steps { + sh 'npm test' + } + } + + } + environment { + Start = '' + } +} \ No newline at end of file