From 5e1dac0925d8d1ff4ace0412682dffa26e8c71bb Mon Sep 17 00:00:00 2001 From: flashlan Date: Tue, 16 Nov 2021 09:31:52 -0300 Subject: [PATCH] added JenkinsFile --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 820692e..2672b20 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,9 +7,11 @@ pipeline { stages { stage('Build') { steps { - nodejs(nodeJSInstallationName: 'Node 6.x', configId: '') { - sh 'npm config ls' - } + sh 'sudo apt-get update && sudo apt-get -y --no-install-recommends install && sudo apt-get clean' + sh 'sudo apt-get install -y curl ' + sh 'curl -sL https://deb.nodesource.com/setup_8.x | bash -' + sh 'sudo apt-get install -y nodejs && sudo apt-get install -y nginx' + //sh 'npm install' } } stage('Test') {