Shell script + jenkinsfile

This commit is contained in:
Dominik 2021-03-25 12:26:18 +01:00
parent 17464105e6
commit 97e55e529c
2 changed files with 14 additions and 0 deletions

8
Jenkinsfile vendored
View File

@ -10,6 +10,14 @@ pipeline {
)
}
stages {
stage('Clone_Repo') {
steps {
// Get some code from a GitHub repository
git 'https://git.wmi.amu.edu.pl/s434788/ium_434788'
stage('Run shell script') {
./test.sh
archiveArtifacts 'train.csv'
}
stage('Hello') {
steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)

6
test.sh Normal file
View File

@ -0,0 +1,6 @@
curl -OL https://git.wmi.amu.edu.pl/s434788/ium_434788/raw/branch/master/winequality-red.csv
head -n 1 wine.csv >header.csv
tail -n +2 wine.csv | shuf > data.shuffled
head -n 1000 data.shuffled > train.data.csv
cat header.tsv train.data.csv > train.csv