ium_478841/Jenkinsfile

21 lines
702 B
Plaintext
Raw Normal View History

2022-03-21 11:22:38 +01:00
String repoUrl = "https://git.wmi.amu.edu.pl/s478841/ium_478841.git"
2022-03-21 10:52:35 +01:00
node {
2022-03-21 11:07:56 +01:00
stage('checkout: Check out from version control') {
2022-03-21 11:22:38 +01:00
echo "Cloning the repository from ${repoUrl}..."
git clone repoUrl
echo "Repository cloned"
2022-03-21 10:52:35 +01:00
}
2022-03-21 11:07:56 +01:00
stage('sh: Shell Script') {
2022-03-21 10:52:35 +01:00
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
2022-03-21 11:07:56 +01:00
//sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
2022-03-21 11:22:38 +01:00
echo "Running the data loading script..."
2022-03-21 11:07:56 +01:00
sh "./load_data.sh | tee output.txt"
2022-03-21 11:22:38 +01:00
echo "Data loaded"
2022-03-21 10:52:35 +01:00
}
2022-03-21 11:22:38 +01:00
stage('archive artifacts') {
2022-03-21 10:52:35 +01:00
//Zarchiwizuj wynik
2022-03-21 11:22:38 +01:00
echo "Saving results to the output.txt..."
2022-03-21 10:52:35 +01:00
archiveArtifacts 'output.txt'
}
}