Added Jenkinsfile

This commit is contained in:
Andrzej Preibisz 2022-03-21 11:05:30 +01:00
parent b3ddc5b436
commit 61752172bc
2 changed files with 27 additions and 0 deletions

25
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'Hello World!',
description: 'Tekst do wyświetlenie',
name: 'INPUT_TEXT',
trim: false
)
])
])
}
stage('Hello') {
//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') {
echo 'Goodbye!'
//Zarchiwizuj wynik
archiveArtifacts 'output.txt'
}
}

View File

@ -27,7 +27,9 @@ print("Odchylenie standardowe BMI - łącznie:", dataset["BMI"].std())
print("Mediana BMI:", dataset_test["BMI"].median())
max_bmi = dataset_train["BMI"].max()
print(max_bmi)
dataset_train["BMI"] = dataset_train["BMI"].apply(lambda x: x/max_bmi)
dataset_test["BMI"] = dataset_test["BMI"].apply(lambda x: x/max_bmi)
print(dataset_train["AgeCategory"].value_counts())
print(dataset_train["BMI"])