diff --git a/core/scripts/screenshot/ci.js b/core/scripts/screenshot/ci.js index d5393612f1..5622f1ab18 100644 --- a/core/scripts/screenshot/ci.js +++ b/core/scripts/screenshot/ci.js @@ -13,8 +13,9 @@ const s3 = new S3({ apiVersion: '2006-03-01' }); class CIScreenshotConnector extends IonicConnector { async initBuild(opts) { - const result = await execa.stdout('git', ['log', '-1', '--format=%h%n%an <%ae>%n%ct%n%s']); - const [ sha1short, author, timestamp, msg ] = result.split('\n'); + const result = await execa.stdout('git', ['log', '-1', '--format=%H%n%an <%ae>%n%ct%n%s']); + const [ sha1, author, timestamp, msg ] = result.split('\n'); + const sha1short = sha1.slice(0, 7); opts.buildId = sha1short; opts.buildMessage = msg;