Skip to content

Commit 520ebd4

Browse files
authored
ci: sample build in Cloud Build (#1381)
1 parent 30a51f6 commit 520ebd4

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.cloudbuild/samples_build.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
steps:
2+
- name: gcr.io/cloud-devrel-public-resources/java8
3+
entrypoint: ls
4+
args: [
5+
'-alt',
6+
]
7+
- name: gcr.io/cloud-devrel-public-resources/java8
8+
entrypoint: curl
9+
args: [
10+
'--header',
11+
'Metadata-Flavor: Google',
12+
'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email'
13+
]
14+
- name: gcr.io/cloud-devrel-public-resources/java8
15+
entrypoint: pwd
16+
- name: gcr.io/cloud-devrel-public-resources/java8
17+
entrypoint: bash
18+
args: [
19+
'.kokoro/build.sh'
20+
]
21+
env:
22+
- 'JOB_TYPE=samples'
23+
- 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
24+
- 'KOKORO_GITHUB_PULL_REQUEST_NUMBER=$_PR_NUMBER'
25+
- name: gcr.io/cloud-devrel-public-resources/java8
26+
entrypoint: echo
27+
args: [
28+
'Sample job succeeded',
29+
]
30+
timeout: 3600s
31+
options:
32+
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET

samples/snippets/src/test/resources/index.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# one time index creation is required to run AggregationQuerySampleTestIT
15+
# one time index creation is required to run AggregationQuerySampleTestIT and ConceptsTest
1616
# see https://cloud.google.com/sdk/gcloud/reference/datastore/indexes/create for more details
1717
indexes:
1818
- kind: Sales
1919
properties:
2020
- name: customerId
2121
- name: amount
22+
- kind: Task
23+
properties:
24+
- name: tag
25+
- name: tag

0 commit comments

Comments
 (0)