Jenksins test

This commit is contained in:
s478841 2022-03-26 14:57:58 +01:00
parent 8b93651360
commit 60efc65335

48
Jenkinsfile vendored
View File

@ -1,21 +1,33 @@
String repoUrl = "https://git.wmi.amu.edu.pl/s478841/ium_478841.git" String repoUrl = "https://git.wmi.amu.edu.pl/s478841/ium_478841.git"
pipeline {
agent any
node { stages {
stage('checkout: Check out from version control') { stage('gitlab') {
echo "Cloning the repository from ${repoUrl}..." steps {
git clone repoUrl echo 'Notify GitLab'
echo "Repository cloned" 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 // node {
//sh "figlet \"${INPUT_TEXT}\" | tee output.txt" // stage('checkout: Check out from version control') {
echo "Running the data loading script..." // echo "Cloning the repository from ${repoUrl}..."
sh "./load_data.sh | tee output.txt" // git clone repoUrl
echo "Data loaded" // echo "Repository cloned"
} // }
stage('archive artifacts') { // stage('sh: Shell Script') {
//Zarchiwizuj wynik // //Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
echo "Saving results to the output.txt..." // //sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
archiveArtifacts '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'
// }
// }