File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2019, Google, LLC.
2
+ * Copyright 2019 Google LLC
3
+ *
3
4
* Licensed under the Apache License, Version 2.0 (the "License");
4
5
* you may not use this file except in compliance with the License.
5
6
* You may obtain a copy of the License at
6
7
*
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
+ * http://www.apache.org/licenses/LICENSE-2.0
8
9
*
9
10
* Unless required by applicable law or agreed to in writing, software
10
11
* distributed under the License is distributed on an "AS IS" BASIS,
15
16
16
17
'use strict' ;
17
18
19
+ // sample-metadata:
20
+ // title: List Triggers.
21
+ // description: List available build triggers.
22
+ // usage: node list-build-triggers.js <PROJECT_ID>
23
+
18
24
// [START cloudbuild_list_build_triggers]
19
25
async function listBuildTriggers (
20
26
projectId = 'YOUR_PROJECT_ID' // Your Google Cloud Platform project ID
Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2019, Google, LLC.
2
+ * Copyright 2019 Google LLC
3
+ *
3
4
* Licensed under the Apache License, Version 2.0 (the "License");
4
5
* you may not use this file except in compliance with the License.
5
6
* You may obtain a copy of the License at
6
7
*
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
+ * http://www.apache.org/licenses/LICENSE-2.0
8
9
*
9
10
* Unless required by applicable law or agreed to in writing, software
10
11
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -50,7 +51,7 @@ describe('Sample Integration Tests', () => {
50
51
51
52
it ( 'should run list-build-triggers.js' , async ( ) => {
52
53
const stdout = execSync (
53
- `node ./samples/list-build-triggers .js ${ PROJECT_ID } ${ TRIGGER_ID } cloud-build-mvp` ,
54
+ `node ./samples/listBuildTriggers .js ${ PROJECT_ID } ${ TRIGGER_ID } cloud-build-mvp` ,
54
55
{ cwd}
55
56
) ;
56
57
assert . include ( stdout , 'Push-to-any-branch' ) ;
You can’t perform that action at this time.
0 commit comments