From 8b93651360f9e54a8556b9b7375abd5d32485cc2 Mon Sep 17 00:00:00 2001 From: s478841 Date: Mon, 21 Mar 2022 11:22:38 +0100 Subject: [PATCH] Jenkins update --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9ec92a7..fedac3f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,21 @@ +String repoUrl = "https://git.wmi.amu.edu.pl/s478841/ium_478841.git" + node { stage('checkout: Check out from version control') { - git clone https://git.wmi.amu.edu.pl/s478841/ium_478841.git + echo "Cloning the repository from ${repoUrl}..." + git clone repoUrl + echo "Repository cloned" } stage('sh: Shell Script') { //Wywołaj w konsoli komendę "figlet", która generuje ASCI-art //sh "figlet \"${INPUT_TEXT}\" | tee output.txt" + echo "Running the data loading script..." sh "./load_data.sh | tee output.txt" + echo "Data loaded" } - stage('Goodbye') { - echo 'Goodbye!' + stage('archive artifacts') { //Zarchiwizuj wynik + echo "Saving results to the output.txt..." archiveArtifacts 'output.txt' } } \ No newline at end of file