@@ -16,7 +16,31 @@ pipeline {
1616 }
1717
1818 stages {
19+
20+ stage(' Manual Stage' ) {
21+ when {
22+ allOf {
23+ branch ' fix-trigger'
24+ triggeredBy ' UserIdCause' // Manual "Build Now"
25+ }
26+ }
27+ steps {
28+ sh " echo Manual is good"
29+ }
30+ }
31+
1932 stage(' Prepare Environment' ) {
33+ when {
34+ anyOf {
35+ allOf {
36+ branch ' master'
37+ triggeredBy ' UserIdCause' // Manual trigger on master
38+ }
39+ allOf {
40+ branch ' latest'
41+ }
42+ }
43+ }
2044 steps {
2145 script {
2246 sh ' git config --global --add safe.directory $(pwd)'
@@ -41,11 +65,14 @@ pipeline {
4165
4266 stage(' Beta Release' ) {
4367 when {
44- branch ' master'
45- }
68+ allOf {
69+ branch ' master'
70+ triggeredBy ' UserIdCause' // Manual "Build Now"
71+ }
72+ }
4673 steps {
4774 sh '''
48- sed -i -E 's/^(name *= *")superclient (")/\\ 1superclient -beta\\ 2/' pyproject.toml
75+ sed -i -E 's/^(name *= *")superstream-clients (")/\\ 1superstream-clients -beta\\ 2/' pyproject.toml
4976 '''
5077 sh ' pip install --quiet build twine'
5178 sh ' python -m build'
@@ -106,7 +133,7 @@ pipeline {
106133 }
107134 withCredentials([string(credentialsId : ' gh_token' , variable : ' GH_TOKEN' )]) {
108135 sh """
109- gh release create $versionTag dist/superstream_confluent_kafka -${ env.versionTag} .tar.gz --generate-notes
136+ gh release create $versionTag dist/superstream_clients -${ env.versionTag} .tar.gz --generate-notes
110137 """
111138 }
112139 }
@@ -125,14 +152,14 @@ pipeline {
125152 }
126153 }
127154
128- failure {
129- script {
130- if (env. GIT_BRANCH == ' latest' ) {
131- sendSlackNotification(' FAILURE' )
132- notifyFailed()
133- }
134- }
135- }
155+ // failure {
156+ // script {
157+ // if (env.GIT_BRANCH == 'latest') {
158+ // sendSlackNotification('FAILURE')
159+ // notifyFailed()
160+ // }
161+ // }
162+ // }
136163 aborted {
137164 script {
138165 if (env. BRANCH_NAME == ' latest' ) {
0 commit comments