Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Commit

Permalink
Add Jenkins job for auto-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel15 committed May 14, 2017
1 parent dddbc9f commit cc20089
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions jenkins_jobs.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Jenkins build jobs for babel-standalone

job('babel-standalone-update') {
description 'Updates babel-standalone to the latest version of Babel'
label 'powershell'
scm {
git {
branch 'master'
remote {
github 'babel/babel-standalone', 'ssh'
}
extensions {
// Required so we can commit to master
// http://stackoverflow.com/a/29786580/210370
localBranch 'master'
}
}
}
triggers {
urlTrigger {
cron 'H/15 * * * *'
url('https://babel-standalone.dan.cx/latest-babel-version') {
inspection 'change'
}
}
}

wrappers {
credentialsBinding {
string 'GITHUB_TOKEN', 'BABEL_STANDALONE_GITHUB_TOKEN'
}
}
steps {
powerShell '''
$Env:GITHUB_USER = 'babel'
$Env:GITHUB_REPO = 'babel-standalone'
.\\scripts\\update.ps1
'''
}
publishers {
git {
branch 'origin', 'master'
pushOnlyIfSuccess
}
}
}

0 comments on commit cc20089

Please sign in to comment.