From c096c71856a670838bee99cd4bf60836dc81da2b Mon Sep 17 00:00:00 2001 From: Adam Wojdyla Date: Fri, 25 Mar 2022 08:14:39 +0100 Subject: [PATCH] Jenkinsfile added --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ tesy.py | 10 ---------- 2 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 Jenkinsfile delete mode 100644 tesy.py diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0352999 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +pipeline { + agent any + //Definijuemy parametry, które będzie można podać podczas wywoływania zadania + parameters { + string ( + defaultValue: 'Hello World!', + description: 'Tekst, którym chcesz przywitać świat', + name: 'INPUT_TEXT', + trim: false + ) + } + stages { + stage('Hello') { + steps { + //Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!) + echo "INPUT_TEXT: ${INPUT_TEXT}" + //Wywołaj w konsoli komendę "figlet", która generuje ASCI-art + sh "figlet \"${INPUT_TEXT}\" | tee output.txt" + } + } + stage('Goodbye!') { + steps { + echo 'Goodbye!' + //Zarchiwizuj wynik + archiveArtifacts 'output.txt' + } + } + } +} \ No newline at end of file diff --git a/tesy.py b/tesy.py deleted file mode 100644 index f965213..0000000 --- a/tesy.py +++ /dev/null @@ -1,10 +0,0 @@ -# cars = pd.read_csv('Car_Prices_Poland_Kaggle.csv') -# cars_normalized = normalize_dataset(cars) -# -# # cars[["mark", "price"]].groupby("mark").mean().plot(kind="bar") -# cars["mark"].value_counts().plot(kind="bar") -# -# print(cars.describe(include='all')) -# print(cars["price"].value_counts()) -# -# divide_dataset(cars) \ No newline at end of file