diff --git a/Jenkinsfile b/Jenkinsfile index c69b616..f3c23f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { name: 'KAGGLE_KEY' ), string( - defaultValue: null, + defaultValue: '', description: 'Set cutoff', name: 'CUTOFF', trim: false diff --git a/s487175-create-dataset-script.py b/s487175-create-dataset-script.py index 2153b46..93e297c 100644 --- a/s487175-create-dataset-script.py +++ b/s487175-create-dataset-script.py @@ -11,9 +11,10 @@ if cutoff is None: print("CUTOFF parameter not set.") diamonds else: - cutoff = int(os.environ['CUTOFF']) + cutoff = int(cutoff) diamonds = diamonds[:cutoff] diamonds.to_csv('diamonds.csv', index=False) #nadpisanie pliku + diamonds # %% #przydzielanie nazwy kolumny z id