ium_434780/Jenkinsfile

29 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-04-19 14:48:40 +02:00
pipeline{
agent any
stages{
stage('checkout: Check out from version control'){
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '321737ab-1c4d-475f-9667-513cf19ba596', url: 'https://git.wmi.amu.edu.pl/s434780/ium_434780.git']]])
}
}
stage('sh: Shell Script'){
steps{
2021-04-19 15:36:43 +02:00
sh '''#!/bin/bash
2021-04-19 23:18:23 +02:00
curl -OL https://git.wmi.amu.edu.pl/s434780/ium_434780/src/branch/master/data.csv
2021-04-19 23:25:33 +02:00
head -n -1 data.csv | shuf > data1.csv.shuf
wc -l data1.csv
head -n 500 data1.csv.shuf > test.csv
head -n 500 data1.csv.shuf | tail -n 2006 > dev.csv
tail -n +501 data1.csv.shuf > train.csv
2021-04-19 15:36:43 +02:00
wc -l *.csv '''
2021-04-19 14:48:40 +02:00
}
}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
}
}
}
2021-04-17 19:50:37 +02:00
}