<commit_before># This script will use rsync to
# copy the files for the Jenkins job workspace to the provided target directory,
# excluding the files listed in exclude.txt (regular expression list)
# setting proper file owner and permissions
# clearing the Symfony2 cache
# generating optimized autoload

# 1 - Location of the build checkout - double quoted, no trailing slash
# 2 - Relative path to be deployed - with trailing slash
# 3 - Target server location - full server path no trailing slash
# 4 - Target server sudo user


# building the unix path for the root directory
dirRoot=$1
echo -e "\n\n\e[0;34mUnix path for Jenkins Workspace working dir is:\e[0m" $dirRoot
echo -e "\n\e[0;34mUnix path for Deployable files dir is:\e[0m" $dirRoot/$2

echo -e "\n\n\e[0;34m********** Start Synchronising files with Rsync **********\e[0m"
echo sudo -t -H -u $4 bash -c "sudo /usr/bin/rsync -arivzt --delete --no-p --no-o --no-g --exclude-from=$dirRoot/build/exclude.txt --stats $dirRoot/$2 $3"
sudo -t -H -u $4 bash -c "sudo /usr/bin/rsync -arivzt --delete --no-p --no-o --no-g --exclude-from=$dirRoot/build/exclude.txt --stats $dirRoot/$2 $3"
<commit_msg>Update the CI build script for jenkins<commit_after># This script will use rsync to
# copy the files for the Jenkins job workspace to the provided target directory,
# excluding the files listed in exclude.txt (regular expression list)
# setting proper file owner and permissions
# clearing the Symfony2 cache
# generating optimized autoload

# 1 - Location of the build checkout - double quoted, no trailing slash
# 2 - Relative path to be deployed - with trailing slash
# 3 - Target server location - full server path no trailing slash
# 4 - Target server sudo user


# building the unix path for the root directory
dirRoot=$1
echo -e "\n\n\e[0;34mUnix path for Jenkins Workspace working dir is:\e[0m" $dirRoot
echo -e "\n\e[0;34mUnix path for Deployable files dir is:\e[0m" $dirRoot/$2

echo -e "\n\n\e[0;34m********** Setting up the correct composer.json file **********\e[0m"
echo sudo -t -H -u $4 bash -c "sudo mv -v $dirRoot/$2composer.json.jenkins $dirRoot/$2composer.json"
sudo -t -H -u $4 bash -c "sudo mv -v $dirRoot/$2composer.json.jenkins $dirRoot/$2composer.json"

echo -e "\n\n\e[0;34m********** Updating Composer Dependensies **********\e[0m"
echo sudo -t -H -u $4 bash -c "sudo php $dirRoot/$2composer.phar install -o"
sudo -t -H -u $4 bash -c "sudo php $dirRoot/$2composer.phar install -o"

echo -e "\n\n\e[0;34m********** Start Synchronising files with Rsync **********\e[0m"
echo sudo -t -H -u $4 bash -c "sudo /usr/bin/rsync -arivzt --delete --no-p --no-o --no-g --exclude-from=$dirRoot/build/exclude.txt --stats $dirRoot/$2 $3"
sudo -t -H -u $4 bash -c "sudo /usr/bin/rsync -arivzt --delete --no-p --no-o --no-g --exclude-from=$dirRoot/build/exclude.txt --stats $dirRoot/$2 $3"

{'fraction_non_alphanumeric': 0.15031534688156972, 'fraction_numerical': 0.023826208829712685, 'mean_word_length': 3.553429027113238, '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': '1499648', 'n_tokens_mistral': 1036, 'n_tokens_neox': 957, 'n_words': 379}