Jenkins update
This commit is contained in:
parent
7c87d7ea7d
commit
8b93651360
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -1,15 +1,21 @@
|
|||||||
|
String repoUrl = "https://git.wmi.amu.edu.pl/s478841/ium_478841.git"
|
||||||
|
|
||||||
node {
|
node {
|
||||||
stage('checkout: Check out from version control') {
|
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') {
|
stage('sh: Shell Script') {
|
||||||
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
|
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
|
||||||
//sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
//sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
||||||
|
echo "Running the data loading script..."
|
||||||
sh "./load_data.sh | tee output.txt"
|
sh "./load_data.sh | tee output.txt"
|
||||||
|
echo "Data loaded"
|
||||||
}
|
}
|
||||||
stage('Goodbye') {
|
stage('archive artifacts') {
|
||||||
echo 'Goodbye!'
|
|
||||||
//Zarchiwizuj wynik
|
//Zarchiwizuj wynik
|
||||||
|
echo "Saving results to the output.txt..."
|
||||||
archiveArtifacts 'output.txt'
|
archiveArtifacts 'output.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user