From de37b2b4168c9e615274d0f1a785dcd37ef952e9 Mon Sep 17 00:00:00 2001 From: Natalia Szymczyk Date: Fri, 21 Apr 2023 16:11:09 +0200 Subject: [PATCH] ls --- Jenkinsfile | 5 +++++ Jenkinsfile2 | 8 ++++---- main2.py | 6 +++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a7f81d6..98271f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,11 @@ pipeline { sh 'python3 main.py' } } + stage('List') { + steps { + sh 'ls -la' + } + } stage('ArchiveArtifacts') { steps { archiveArtifacts 'liver.data.train' diff --git a/Jenkinsfile2 b/Jenkinsfile2 index ae0851a..5c2a38f 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -14,11 +14,11 @@ pipeline { copyArtifacts projectName: 'z-s487186-create-dataset', selector: lastSuccessful() } } - stage('test') { - steps { - sh 'ls -la' + stage('List') { + steps { + sh 'ls -la' + } } - } stage('Script') { steps { sh 'python3 main2.py > output.txt' diff --git a/main2.py b/main2.py index 28a72d3..48cea77 100644 --- a/main2.py +++ b/main2.py @@ -1,8 +1,8 @@ import pandas as pd -train = pd.read_csv('liver.data.train') -test = pd.read_csv('liver.data.test') -dev = pd.read_csv('liver.data.dev') +train = pd.read_csv('liver.train.data') +test = pd.read_csv('liver.test.data') +dev = pd.read_csv('liver.dev.data') print('\ntrain dataset:\n', train.describe()) print('\ntest dataset:\n', test.describe())