#!/bin/bash

# BUILD_INFO_FILE=/home/student/base_build.txt
# echo '******************************************************'
# echo 'Logging build data to /home/student/base_build.txt'
# echo '******************************************************'
# date +"%Y-%m-%d %H:%M" > $BUILD_INFO_FILE
# echo -n "Jenkins Build ID: " >> $BUILD_INFO_FILE
# echo $BUILD_TAG >> $BUILD_INFO_FILE
# echo -n "Github branch: " >> $BUILD_INFO_FILE
# echo $GIT_BRANCH >> $BUILD_INFO_FILE
# cat $BUILD_INFO_FILE 

echo '******************************************************'
echo 'Running apt.sh'
echo '******************************************************'
bash ./apt.sh

echo '******************************************************'
echo 'Running grafana.sh'
echo '******************************************************'
bash ./grafana.sh

echo '******************************************************'
echo 'Running mysql.sh'
echo '******************************************************'
bash ./mysql.sh

echo '******************************************************'
echo 'Running k8s.sh'
echo '******************************************************'
bash ./k8s.sh

echo '******************************************************'
echo 'Running fleet.sh'
echo '******************************************************'
bash ./fleet.sh

echo '******************************************************'
echo 'Running osquery.sh'
echo '******************************************************'
bash ./osquery.sh

echo '******************************************************'
echo 'Running cloud.sh'
echo '******************************************************'
bash ./cloud.sh

echo '******************************************************'
echo 'Running docker.sh'
echo '******************************************************'
bash ./docker.sh

echo '******************************************************'
echo 'Running nessus.sh'
echo '******************************************************'
bash ./nessus.sh

echo '******************************************************'
echo 'Running misc.sh'
echo '******************************************************'
bash ./misc.sh

echo '******************************************************'
echo 'Running ssh.sh'
echo '******************************************************'
bash ./ssh.sh

# echo '******************************************************'
# echo 'Running Pester tests'
# echo '******************************************************'
# pwsh /home/student/pester/runPester.ps1

echo '******************************************************'
echo 'Running setup2.sh'
echo '******************************************************'
bash ./setup2.sh