Skip to content

Commit b388907

Browse files
authored
feat(events): Add gcpPublishEvent Groovy file (#4927)
* add gcpPublishEvent.groovy * fix unit tests --------- Co-authored-by: jliempt <>
1 parent 125c48e commit b388907

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/groovy/CommonStepsTest.groovy

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ public class CommonStepsTest extends BasePiperTest{
233233
'tmsUpload',
234234
'tmsExport',
235235
'imagePushToRegistry',
236+
'gcpPublishEvent'
236237
]
237238

238239
@Test

vars/gcpPublishEvent.groovy

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import groovy.transform.Field
2+
3+
@Field String STEP_NAME = getClass().getName()
4+
@Field String METADATA_FILE = 'metadata/gcpPublishEvent.yaml'
5+
6+
void call(Map parameters = [:]) {
7+
List credentials = []
8+
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
9+
}

0 commit comments

Comments
 (0)