Skip to content

Commit

Permalink
Initial Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
LloydGriffiths committed Aug 1, 2016
1 parent 2da02d9 commit ce7c21e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!groovy

node {
stage 'Checkout'
checkout scm

stage 'Build'
sh 'git rev-parse --short HEAD > git-commit'
sh 'npm install --no-bin-links'

stage 'Bundle'
sh "aws s3 cp --acl public-read --recursive dist s3://${env.S3_CDN_BUCKET}/${readFile('git-commit').trim()}"
}
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
npm install
npm install --no-bin-links

0 comments on commit ce7c21e

Please sign in to comment.