Alpha branch build script

Change-Id: I60321d4cb4b2367db3e9137589dd6ff2bcf87c06
diff --git a/kokoro/alpha.cfg b/kokoro/alpha.cfg
new file mode 100644
index 0000000..3c14c01
--- /dev/null
+++ b/kokoro/alpha.cfg
@@ -0,0 +1,17 @@
+build_file: "continuous-build/build/kokoro/alpha.sh"
+gfile_resources: "/x20/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/rootfs/latest/rootfs.raw.img"
+gfile_resources: "/x20/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/rootfs/latest/rootfs.raw.img.sha256sum"
+gfile_resources: "/x20/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/docker/aiy-board-builder.tar"
+gfile_resources: "/x20/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/pbuilder/base.tgz"
+action {
+  define_artifacts {
+    regex: "boot.img"
+    regex: "flash.sh"
+    regex: "manifest.xml"
+    regex: "sdcard.img"
+    regex: "partition-table-*.img"
+    regex: "rootfs.img"
+    regex: "u-boot.imx"
+    regex: "packages.tgz"
+  }
+}
diff --git a/kokoro/alpha.sh b/kokoro/alpha.sh
new file mode 100644
index 0000000..3ce4dc0
--- /dev/null
+++ b/kokoro/alpha.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+set -e
+set -x
+
+# Symlink the Makefile, like it would be if repo checked this out.
+# Otherwise, sourcing setup.sh doesn't work as expected.
+ln -sfr git/continuous-build/build/Makefile git/continuous-build/Makefile
+
+# Sourcing this only works in the directory above build...
+pushd git/continuous-build
+source build/setup.sh
+popd
+
+export IS_GLINUX=true
+export TARBALL_FETCH_ROOT_DIRECTORY=${KOKORO_GFILE_DIR}
+export PREBUILT_MODULES_ROOT=${KOKORO_GFILE_DIR}
+export PREBUILT_DOCKER_ROOT=${KOKORO_GFILE_DIR}
+export FETCH_PBUILDER_DIRECTORY=${KOKORO_GFILE_DIR}
+export PACKAGES_FETCH_ROOT_DIRECTORY=${KOKORO_GFILE_DIR}
+export PACKAGES_REVISION=.
+export ROOTFS_REVISION=.
+export FETCH_PACKAGES=false
+
+# Install haveged on the host to provide extra entropy.
+sudo apt-get install -y haveged
+sudo /etc/init.d/haveged start
+
+# Inject libedgetpu deb build from Blaze into the package directory.
+touch ${PACKAGES_FETCH_ROOT_DIRECTORY}/${PACKAGES_REVISION}/packages.tgz
+m out-dirs
+find ${KOKORO_GFILE_DIR} -name 'libedgetpu*.deb' -exec cp {} ${PRODUCT_OUT}/packages \;
+touch ${PRODUCT_OUT}/.libedgetpu-pbuilder
+
+m docker-all
+m docker-sdcard
+
+pushd ${ROOTDIR}
+python3 ${ROOTDIR}/build/create_release_manifest.py \
+  -i ${ROOTDIR}/manifest/default.xml \
+  -o ${KOKORO_ARTIFACTS_DIR}/manifest.xml
+popd
+
+cp ${ROOTDIR}/board/flash.sh ${KOKORO_ARTIFACTS_DIR}
+chmod -x ${KOKORO_ARTIFACTS_DIR}/flash.sh
+cp ${PRODUCT_OUT}/u-boot.imx ${KOKORO_ARTIFACTS_DIR}
+cp ${PRODUCT_OUT}/boot.img ${KOKORO_ARTIFACTS_DIR}
+cp ${PRODUCT_OUT}/partition-table-*.img ${KOKORO_ARTIFACTS_DIR}
+cp ${PRODUCT_OUT}/rootfs.img ${KOKORO_ARTIFACTS_DIR}
+cp ${PRODUCT_OUT}/sdcard.img ${KOKORO_ARTIFACTS_DIR}
+cp ${ROOTDIR}/cache/packages.tgz $KOKORO_ARTIFACTS_DIR