Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ pipeline {
}

stages {

stage('Prepare Environment') {
when {
anyOf {
allOf {
branch 'master'
triggeredBy 'UserIdCause' // Manual trigger on master
}
allOf {
branch 'latest'
}
}
}
steps {
script {
sh 'git config --global --add safe.directory $(pwd)'
Expand All @@ -41,11 +53,14 @@ pipeline {

stage('Beta Release') {
when {
branch 'master'
}
allOf {
branch 'master'
triggeredBy 'UserIdCause' // Manual "Build Now"
}
}
steps {
sh '''
sed -i -E 's/^(name *= *")superclient(")/\\1superclient-beta\\2/' pyproject.toml
sed -i -E 's/^(name *= *")superstream-clients(")/\\1superstream-clients-beta\\2/' pyproject.toml
'''
sh 'pip install --quiet build twine'
sh 'python -m build'
Expand Down Expand Up @@ -106,7 +121,7 @@ pipeline {
}
withCredentials([string(credentialsId: 'gh_token', variable: 'GH_TOKEN')]) {
sh """
gh release create $versionTag dist/superstream_confluent_kafka-${env.versionTag}.tar.gz --generate-notes
gh release create $versionTag dist/superstream_clients-${env.versionTag}.tar.gz --generate-notes
"""
}
}
Expand Down