From 2febe146209d2f57f9b8af8fffc4bc88cf2837dd Mon Sep 17 00:00:00 2001 From: stivenquirozc Date: Thu, 21 Oct 2021 17:04:21 -0500 Subject: [PATCH 1/2] add jenkinsfile --- Jenkinsfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e69de29 From 52e2a7f7c65691e9c473928bc7826398ec46efcb Mon Sep 17 00:00:00 2001 From: stivenquirozc Date: Fri, 22 Oct 2021 17:17:30 -0500 Subject: [PATCH 2/2] add jenkinsfile --- Jenkinsfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e69de29..f89e626 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,16 @@ +stage('npm-build') { + agent { + docker { + image 'node:7.4' + } + } + + steps { + echo "Branch is ${env.BRANCH_NAME}..." + + withNPM(npmrcConfig:'my-custom-npmrc') { + echo "Performing npm build..." + sh 'npm install' + } + } +} \ No newline at end of file