diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..bd71437 --- /dev/null +++ b/Jenkinsfile @@ -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' + } +} \ No newline at end of file diff --git a/lab2.ipynb b/lab2.ipynb index 6007b22..07788fa 100644 --- a/lab2.ipynb +++ b/lab2.ipynb @@ -32,8 +32,8 @@ } ], "source": [ - "%pip install --user kaggle \n", - "%pip install --user pandas" + "!pip install --user kaggle \n", + "!pip install --user pandas" ] }, { @@ -92,8 +92,8 @@ } ], "source": [ - "!find /c /v \"\" \"olympics-124-years-datasettill-2020/Athletes_summer_games.csv\" \n", - "#!wc -l olympics-124-years-datasettill-2020/Athletes_summer_games.csv" + "#find /c /v \"\" \"olympics-124-years-datasettill-2020/Athletes_summer_games.csv\" \n", + "!wc -l olympics-124-years-datasettill-2020/Athletes_summer_games.csv" ] }, { @@ -237789,8 +237789,8 @@ } ], "source": [ - "!type \"olympics-124-years-datasettill-2020\\Athletes_summer_games.csv\"\n", - "#!head -n 5 olympics-124-years-datasettill-2020\\Athletes_summer_games.csv" + "#!type \"olympics-124-years-datasettill-2020\\Athletes_summer_games.csv\"\n", + "!head -n 5 olympics-124-years-datasettill-2020\\Athletes_summer_games.csv" ] }, { @@ -237821,7 +237821,7 @@ } ], "source": [ - "%pip install --user seaborn" + "!pip install --user seaborn" ] }, { @@ -238644,7 +238644,7 @@ } ], "source": [ - "olympicsv = olympics[olympics[\"Team\"] != \"China\"].iloc[:100]\n", + "olympicsv = olympics[olympics[\"Team\"] != \"China\"].iloc[:10]\n", "sns.relplot(data=olympicsv, x=\"Age\", y=\"Name\", hue=\"Team\")" ] },