From 8ddb6d9ee4792f66b21f8857c7942f4d1822fe49 Mon Sep 17 00:00:00 2001 From: ulaniuk Date: Sun, 3 Apr 2022 21:18:45 +0200 Subject: [PATCH] 1 --- Jenkinsfile | 3 +++ create_data.py | 4 +++- preparation.sh | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6aebd13..f76fe4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,6 +39,9 @@ pipeline { } } stage("Dara Preparation") { + agent { + docker { image 'ium_478855' } + } steps { sh 'echo "PREPARATION"' sh "chmod u+x ./preparation.sh" diff --git a/create_data.py b/create_data.py index 30bc8ae..3f9918e 100644 --- a/create_data.py +++ b/create_data.py @@ -22,4 +22,6 @@ no_shows["Age"]=(no_shows["Age"]-no_shows["Age"].min())/(no_shows["Age"].max()-n X = no_shows.drop(columns=['No-show']) y = no_shows['No-show'] -X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) \ No newline at end of file +X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) + +print("Quiting create_data.py") \ No newline at end of file diff --git a/preparation.sh b/preparation.sh index dfe1747..a086870 100644 --- a/preparation.sh +++ b/preparation.sh @@ -1 +1,2 @@ -echo "Preparation inner" \ No newline at end of file +echo "Preparation inner" +python create_data.py \ No newline at end of file