<commit_before>#!/bin/bash

set -x
set -e

branch=$1
server=$2
password=$3
apikey=$4

export PATH=/local/bigdisc/packer-bin:$PATH

boxbasedir=/usr/local/builds/vagrant
resultdir=/local/bigdisc/vagrant
VERSION=`readlink /misc/scratch/carbon/$branch/latest`

# Make a tmp dir to construct the box
boxdir=$boxbasedir/tmp-$branch

rm -rf $boxdir
mkdir -p $boxdir
packer build -only=xenserver-iso -var "branch=$branch" -var "xshost=$server" -var "xspassword=$password" -var "outputdir=$boxdir" -var "version=$VERSION" internal/template-dev.json
rm -rf packer_cache/*
mv $boxdir/*.vhd $boxdir/box.vhd
echo "{\"provider\": \"xenserver\"}" > $boxdir/metadata.json<commit_msg>jenkins: Update path for latest build<commit_after>#!/bin/bash

set -x
set -e

branch=$1
server=$2
password=$3
apikey=$4

export PATH=/local/bigdisc/packer-bin:$PATH

boxbasedir=/usr/local/builds/vagrant
resultdir=/local/bigdisc/vagrant
VERSION=`readlink /usr/groups/build/$branch/latest`

# Make a tmp dir to construct the box
boxdir=$boxbasedir/tmp-$branch

rm -rf $boxdir
mkdir -p $boxdir
packer build -only=xenserver-iso -var "branch=$branch" -var "xshost=$server" -var "xspassword=$password" -var "outputdir=$boxdir" -var "version=$VERSION" internal/template-dev.json
rm -rf packer_cache/*
mv $boxdir/*.vhd $boxdir/box.vhd
echo "{\"provider\": \"xenserver\"}" > $boxdir/metadata.json
{'fraction_non_alphanumeric': 0.16309963099630997, 'fraction_numerical': 0.005904059040590406, 'mean_word_length': 5.163636363636364, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '3460557', 'n_tokens_mistral': 523, 'n_tokens_neox': 500, 'n_words': 112}