t
This commit is contained in:
parent
325a4c6951
commit
3126a97492
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@ -1,27 +1,28 @@
|
|||||||
pipeline {
|
node {
|
||||||
agent any
|
|
||||||
stages {
|
stage('Start') {
|
||||||
|
echo "Program Started"
|
||||||
|
}
|
||||||
|
|
||||||
stage('Clone Git Repository') {
|
stage('Clone Git Repository') {
|
||||||
steps {
|
git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git'
|
||||||
checkout([$class: 'GitSCM',
|
|
||||||
branches: [[name: '*/master']],
|
|
||||||
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git']]])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Process Data') {
|
stage('Process Data') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
wget https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data -O iris.data
|
wget https://www.kaggle.com/datasets/download/5a67c0b2f8e364f5e0aafa810c7e145e9b9ce934f3d13fc54c747b9822cf6f7f -O olympics.csv.zip
|
||||||
shuf iris.data | head -n 100 > iris_subset.csv
|
unzip olympics.csv.zip
|
||||||
cp iris_subset.csv $JENKINS_HOME/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive/iris_subset.csv
|
head -n 1000 olympics.csv > olympics_subset.csv
|
||||||
|
cp olympics_subset.csv $JENKINS_HOME/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive/olympics_subset.csv
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
post {
|
stage('End') {
|
||||||
always {
|
echo 'Program ended!'
|
||||||
archiveArtifacts artifacts: "olympics-124-years-datasettill-2020\Athletes_summer_games.csv", onlyIfSuccessful: true
|
|
||||||
}
|
archiveArtifacts 'olympics_subset.csv'
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user