archive stats

This commit is contained in:
jakubknczny 2021-04-11 11:34:57 +02:00
parent a88751fd7e
commit 19b1db0e66

View File

@ -1,12 +1,5 @@
pipeline { pipeline {
agent none agent none
/* parameters {
string(defaultValue: '6000',
description: 'numbers of data entries to keep in train.csv',
name: 'CUTOFF',
trim: true)
}
*/
stages { stages {
stage('copy files') { stage('copy files') {
agent any agent any
@ -19,40 +12,21 @@ pipeline {
''' '''
} }
} }
/* stage('sh: Shell Script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh ''' chmod +x ./lab2/script-zadanie-2-4.sh
./lab2/script-zadanie-2-4.sh
chmod +x ./lab2/script-zadanie-2-4-cutoff.sh'''
sh "./lab2/script-zadanie-2-4-cutoff.sh ${params.CUTOFF}"
}
}
}
*/
stage('docker') { stage('docker') {
agent { agent {
dockerfile true dockerfile true
} }
stages { stages {
stage('test') { stage('script') {
steps {
sh 'cat /etc/issue'
}
}
stage('actual') {
steps { steps {
sh ''' sh '''
chmod +x script.sh chmod +x script.sh
./script.sh''' ./script.sh >> stats.txt'''
} }
} }
stage('archive artifacts') { stage('archive artifact') {
steps { steps {
archiveArtifacts 'train.csv' archiveArtifacts 'stats.txt'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
} }
} }
} }