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' } } }