ium_487187/Jenkinsfile

27 lines
983 B
Plaintext
Raw Normal View History

2023-03-27 20:39:53 +02:00
pipeline {
agent any
stages {
stage('Clone Git Repository') {
steps {
checkout([$class: 'GitSCM',
branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git']]])
}
}
stage('Process Data') {
steps {
sh '''
#!/bin/bash
wget https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data -O iris.data
shuf iris.data | head -n 100 > iris_subset.csv
cp iris_subset.csv $JENKINS_HOME/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive/iris_subset.csv
'''
}
}
2023-03-22 14:52:10 +01:00
}
2023-03-27 20:39:53 +02:00
post {
always {
2023-03-27 20:40:16 +02:00
archiveArtifacts artifacts: "olympics-124-years-datasettill-2020\Athletes_summer_games.csv", onlyIfSuccessful: true
2023-03-27 20:39:53 +02:00
}
2023-03-22 14:52:10 +01:00
}
}