t
This commit is contained in:
parent
baca0dd7e9
commit
d4ff43f714
35
Jenkinsfile
vendored
35
Jenkinsfile
vendored
@ -1,16 +1,27 @@
|
||||
node {
|
||||
|
||||
stage('Start') {
|
||||
echo "Program Started"
|
||||
}
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Clone Git Repository') {
|
||||
git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git'
|
||||
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
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: 'iris_subset.csv', onlyIfSuccessful: true
|
||||
}
|
||||
|
||||
stage('End') {
|
||||
echo 'Program ended!'
|
||||
|
||||
archiveArtifacts 'output.txt'
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user