From 19b1db0e66e6518363f8501295011ddcf2b2248d Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 11 Apr 2021 11:34:57 +0200 Subject: [PATCH] archive stats --- lab2/Jenkinsfile_create_dataset | 34 ++++----------------------------- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/lab2/Jenkinsfile_create_dataset b/lab2/Jenkinsfile_create_dataset index 29a5353..3b1c64d 100644 --- a/lab2/Jenkinsfile_create_dataset +++ b/lab2/Jenkinsfile_create_dataset @@ -1,12 +1,5 @@ pipeline { agent none -/* parameters { - string(defaultValue: '6000', - description: 'numbers of data entries to keep in train.csv', - name: 'CUTOFF', - trim: true) - } -*/ stages { stage('copy files') { 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') { agent { dockerfile true } stages { - stage('test') { - steps { - sh 'cat /etc/issue' - } - } - stage('actual') { + stage('script') { steps { sh ''' chmod +x script.sh - ./script.sh''' + ./script.sh >> stats.txt''' } } - stage('archive artifacts') { + stage('archive artifact') { steps { - archiveArtifacts 'train.csv' - archiveArtifacts 'test.csv' - archiveArtifacts 'valid.csv' + archiveArtifacts 'stats.txt' } } }