Skip to content

Commit

Permalink
added npm plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopal Saini committed Nov 16, 2018
1 parent 02e5820 commit 2254641
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,9 @@ pipeline {

stages {
stage('build') {
// steps {
// sh 'npm --version'
// sh 'printenv'
// }

steps {
echo "Branch is ${env.BRANCH_NAME}..."

withNPM() {
echo "Performing npm build..."
sh 'npm --version'
sh 'printenv'
sh 'npm install'
}
sh 'npm --version'
sh 'printenv'
}
}

Expand Down Expand Up @@ -62,6 +51,15 @@ pipeline {
}
success {
echo 'This will run only if successful'
publishHTML (target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: '.',
reportFiles: 'lighthouse-report.html',
reportName: 'Lighthouse'
])
}
}
failure {
echo 'This will run only if failed'
Expand Down

0 comments on commit 2254641

Please sign in to comment.