ium_487187/Jenkinsfile

28 lines
667 B
Plaintext
Raw Normal View History

2023-03-27 20:43:35 +02:00
node {
stage('Start') {
echo "Program Started"
2023-03-22 14:52:10 +01:00
}
2023-03-27 20:43:35 +02:00
stage('Clone Git Repository') {
git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git'
}
2023-03-27 20:54:26 +02:00
stage('Process Data') {
sh '''
#!/bin/bash
wget https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data
shuf iris.data | head -n 10 > processed_data.txt
echo "Processed Data" > output.txt
cat processed_data.txt >> output.txt
'''
}
2023-03-27 20:43:35 +02:00
stage('End') {
echo 'Program ended!'
2023-03-27 20:45:56 +02:00
archiveArtifacts 'output.txt'
2023-03-27 20:43:35 +02:00
}
2023-03-22 14:52:10 +01:00
}