Compare commits

..

No commits in common. "jenkins" and "main" have entirely different histories.

2 changed files with 18 additions and 41 deletions

View File

@ -3,7 +3,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,
"id": "7fada8a6", "id": "59868c88",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -31,7 +31,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 2,
"id": "3d3dc9c4", "id": "776bf1e2",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -49,7 +49,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 3,
"id": "e4e1c9c4", "id": "a56dee9c",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -75,28 +75,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": 9,
"id": "198bb7b6", "id": "54a43eaa",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
" 1728 car.data\r\n", " 192 high\n",
" 288 car.data.dev\r\n", " 193 low\n",
" 288 car.data.test\r\n", " 192 med\n",
" 1152 car.data.train\r\n", " 96 high\n",
" 3456 total\r\n" " 96 low\n",
" 96 med\n",
" 96 high\n",
" 96 low\n",
" 96 med\n"
] ]
} }
], ],
"source": [ "source": [
"!head -n 288 car.data > car.data.test\n", "!head -n 288 car.data > car.data.test\n",
"!head -n 576 car.data | tail -n 288 > car.data.dev\n", "!head -n 576 car.data | tail -n 288 > car.data.dev\n",
"!tail -n +577 car.data > car.data.train\n", "!head -n +577 car.data > car.data.train\n",
"#sprawdzanie podziału ze względu na bezpieczeństwo samochodu\n", "#sprawdzanie podziału ze względu na bezpieczeństwo samochodu\n",
"!wc -l car.data*" "!cut -f 6 -d \",\" car.data.train | sort | uniq -c\n",
"!cut -f 6 -d \",\" car.data.test | sort | uniq -c\n",
"!cut -f 6 -d \",\" car.data.dev | sort | uniq -c"
] ]
} }
], ],

29
Jenkinsfile vendored
View File

@ -1,29 +0,0 @@
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'
}
}
}
}