Skip to content

Commit

Permalink
Adding kokoro (#57)
Browse files Browse the repository at this point in the history
* Adding Kokoro build

* Update BUILD (#50)

* Update kokoro_build.sh

* executable build

* Update build.sh

* Update BUILD (#53)

* Update BUILD

* Update build.sh

* Update BUILD

* Update kokoro_build.sh

* Create build.sh

* Update kokoro_build.sh

* Delete build.sh

* Update build.sh

* Update build.sh
  • Loading branch information
pradeepthyadi-gcloud authored Oct 11, 2023
1 parent 56405da commit c87bbe7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kokoro/gcp_ubuntu_docker/continuous.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- protobuffer -*-
# proto-file: google3/devtools/kokoro/config/proto/build.proto
# proto-message: BuildConfig

# Location of the bash script. Should have value <github_scm.name>/<path_from_repository_root>.
# github_scm.name is specified in the job configuration (next section).
build_file: "hadoop-migration-assessment-tools/kokoro/gcp_ubuntu_docker/kokoro_build.sh"
19 changes: 19 additions & 0 deletions kokoro/gcp_ubuntu_docker/kokoro_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Fail on any error.
set -e

# Display commands being run.
# WARNING: please only enable 'set -x' if necessary for debugging, and be very
# careful if you handle credentials (e.g. from Keystore) with 'set -x':
# statements like "export VAR=$(cat /tmp/keystore/credentials)" will result in
# the credentials being printed in build logs.
# Additionally, recursive invocation with credentials as command-line
# parameters, will print the full command, with credentials, in the build logs.
# set -x

# Code under repo is checked out to ${KOKORO_ARTIFACTS_DIR}/github.
# The final directory name in this path is determined by the scm name specified
# in the job configuration.
cd "${KOKORO_ARTIFACTS_DIR}/github/hadoop-migration-assessment-tools/kokoro/scripts"
./build.sh
7 changes: 7 additions & 0 deletions kokoro/gcp_ubuntu_docker/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- protobuffer -*-
# proto-file: google3/devtools/kokoro/config/proto/build.proto
# proto-message: BuildConfig

# Location of the bash script. Should have value <github_scm.name>/<path_from_repository_root>.
# github_scm.name is specified in the job configuration (next section).
build_file: "hadoop-migration-assessment-tools/kokoro/gcp_ubuntu_docker/kokoro_build.sh"
6 changes: 6 additions & 0 deletions kokoro/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Fail on any error.
set -e
cd ../../
bazel build //dist:all

0 comments on commit c87bbe7

Please sign in to comment.