<commit_before>#!/bin/bash

set -o nounset
set -o errexit
set -o nounset
set -o xtrace


declare -r BUILD_TAG="$(date '+%y%m%d%H%M%S')"
declare -r IMG_NAME="debian-builder-${DEB_CHANEL}:${BUILD_TAG}"
declare -r DEB_RELEASE_BUCKET="gs://kubernetes-release-dev/debian/${DEB_CHANEL}"

function cleanup() {
  docker rmi "${IMG_NAME}" || true
}

trap cleanup EXIT SIGINT SIGTERM

docker build -t "${IMG_NAME}" debian/
docker run --rm -v "${PWD}/bin:/src/bin" "${IMG_NAME}"

gsutil -m cp -nc bin/* "${DEB_RELEASE_BUCKET}/${BUILD_TAG}/"
echo "${BUILD_NUMBER}" | gsutil -m cp - "${DEB_RELEASE_BUCKET}/latest"<commit_msg>fix misspelling in jenkins debian build script<commit_after>#!/bin/bash

set -o nounset
set -o errexit
set -o nounset
set -o xtrace


declare -r BUILD_TAG="$(date '+%y%m%d%H%M%S')"
declare -r IMG_NAME="debian-builder-${DEB_CHANNEL}:${BUILD_TAG}"
declare -r DEB_RELEASE_BUCKET="gs://kubernetes-release-dev/debian/${DEB_CHANNEL}"

function cleanup() {
  docker rmi "${IMG_NAME}" || true
}

trap cleanup EXIT SIGINT SIGTERM

docker build -t "${IMG_NAME}" debian/
docker run --rm -v "${PWD}/bin:/src/bin" "${IMG_NAME}"

gsutil -m cp -nc bin/* "${DEB_RELEASE_BUCKET}/${BUILD_TAG}/"
echo "${BUILD_NUMBER}" | gsutil -m cp - "${DEB_RELEASE_BUCKET}/latest"
{'fraction_non_alphanumeric': 0.18586179507545672, 'fraction_numerical': 0.0, 'mean_word_length': 4.915492957746479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3051074', 'n_tokens_mistral': 530, 'n_tokens_neox': 500, 'n_words': 119}