Skip to content

Commit

Permalink
ci cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Jul 22, 2019
1 parent 12c3955 commit 0950059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
14 changes: 3 additions & 11 deletions .jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ pipeline {
// Build and distribute a new package version to PyPi.
stage('Publish to PyPi') {
when {
// example matches: 1.2.3, 1.2.3-dev
tag pattern: '(0|[1-9]*)\\.(0|[1-9]*)\\.(0|[1-9]*)(-(\\S*))?$', comparator: "REGEXP"
buildingTag()
}
environment {
TWINE_USERNAME = 'vaporio'
TWINE_PASSWORD = credentials('twine-password')
}
steps {
// verify the version matches the tag
sh 'PKG_VERSION=$(make version) ./bin/ci/check_version.sh'

// publish to pypi
sh 'tox -e publish'
}
Expand All @@ -56,24 +52,20 @@ pipeline {
// artifacts.
stage('Draft GitHub Release') {
when {
// example matches: 1.2.3, 1.2.3-dev
tag pattern: '(0|[1-9]*)\\.(0|[1-9]*)\\.(0|[1-9]*)(-(\\S*))?$', comparator: "REGEXP"
buildingTag()
}
environment {
GITHUB_USER = 'vapor-ware'
GITHUB_TOKEN = credentials('vio-bot-gh-token')
GITHUB_REPONAME = 'kubetest'
}
steps {
// verify that the version matches the tag
sh 'PKG_VERSION=$(make version) ./bin/ci/check_version.sh'

// Auto-generate a changelog for the release
sh './bin/ci/generate_changelog.sh'

// Create the release
sh 'docker pull edaniszewski/ghr'
sh 'docker run --rm -v ${WORKSPACE}:/repo edaniszewski/ghr -u ${GITHUB_USER} -r ${GITHUB_REPONAME} -t ${GITHUB_TOKEN} -b "$(cat ./CHANGELOG.md)" -replace -draft ${TAG_NAME} dist/'
sh 'docker run --rm -v ${WORKSPACE}:/repo edaniszewski/ghr -u ${GITHUB_USER} -r ${GITHUB_REPONAME} -t ${GITHUB_TOKEN} -b "$(cat ./CHANGELOG.md)" -replace ${TAG_NAME} dist/'
}
}
}
Expand Down
17 changes: 0 additions & 17 deletions bin/ci/check_version.sh

This file was deleted.

0 comments on commit 0950059

Please sign in to comment.