Skip to content

Commit

Permalink
Remove authorization docs job from this code.
Browse files Browse the repository at this point in the history
It doesn't really make that much sense here.
  • Loading branch information
markstory committed Mar 24, 2019
1 parent 4d27a65 commit e90cbdd
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions jenkins_jobs.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
def final REPO_NAME = 'cakephp/docs'
def final AUTHORIZATION_REPO_NAME = 'cakephp/authorization'

// Each version of the book has basically the same
// job definition use a string 'template' to save duplication
Expand All @@ -23,39 +22,6 @@ git push -fv dokku master
rm -rf /tmp/book-VERSION-$GIT_COMMIT
'''

job('Book - Deploy Authorization docs') {
description('Deploy the authorization docs when changes are pushed.')
scm {
github(AUTHORIZATION_REPO_NAME, 'master')
}
triggers {
scm('H/5 * * * *')
}
logRotator {
daysToKeep(30)
}
steps {
shell('''\
# Get docs-builder to populate index
git clone https://github.com/cakephp/docs-builder
pushd docs-builder
make populate-index SOURCE="$WORKSPACE" ES_HOST="$ELASTICSEARCH_URL" INDEX_PREFIX="authorization-11"
popd
# Push to dokku
git remote | grep dokku || git remote add dokku [email protected]:authorization-docs
git push -fv dokku master
''')
}
publishers {
slackNotifications {
projectChannel('#dev')
notifyFailure()
notifyRepeatedFailure()
}
}
}

job('Book - Deploy 3.x') {
description('Deploy the 3.x book when changes are pushed.')
scm {
Expand Down

0 comments on commit e90cbdd

Please sign in to comment.