diff --git a/Jenkinsfile b/Jenkinsfile index fedac3f..fb6f48a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,33 @@ String repoUrl = "https://git.wmi.amu.edu.pl/s478841/ium_478841.git" +pipeline { + agent any -node { - stage('checkout: Check out from version control') { - echo "Cloning the repository from ${repoUrl}..." - git clone repoUrl - echo "Repository cloned" + stages { + stage('gitlab') { + steps { + echo 'Notify GitLab' + updateGitlabCommitStatus name: 'build', state: 'pending' + updateGitlabCommitStatus name: 'build', state: 'success' + } + } } - 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('archive artifacts') { - //Zarchiwizuj wynik - echo "Saving results to the output.txt..." - archiveArtifacts 'output.txt' - } -} \ No newline at end of file + } +// node { +// stage('checkout: Check out from version control') { +// 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('archive artifacts') { +// //Zarchiwizuj wynik +// echo "Saving results to the output.txt..." +// archiveArtifacts 'output.txt' +// } +// } \ No newline at end of file