Merge branch 'master' of https://git.wmi.amu.edu.pl/s434684/ium_434684
This commit is contained in:
commit
952ab2ef08
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -1,21 +1,20 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
agent {dockerfile true}
|
||||
|
||||
stages {
|
||||
stage('Sh script') {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'chmod +x jenkins_script.sh'
|
||||
sh './jenkins_script.sh'
|
||||
sh 'chmod +x run.sh'
|
||||
sh './run.sh > netflix_stats.txt'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
stage('Archive artifacts') {
|
||||
steps{
|
||||
archiveArtifacts artifacts: 'netflix_split_*.csv'
|
||||
archiveArtifacts artifacts: 'netflix_stats.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,20 +1,20 @@
|
||||
pipeline {
|
||||
agent any
|
||||
agent {docker { image 'zollinka/ium:latest' }}
|
||||
|
||||
stages {
|
||||
stage('copyArtifacts') {
|
||||
stage('Sh script') {
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('CREATE_DATASET_BUILD_SELECTOR')
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'chmod +x run.sh'
|
||||
sh './run.sh > netflix_stats.txt'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
stage('script stats') {
|
||||
steps {
|
||||
sh 'chmod +x jenkins_stats_script.sh'
|
||||
sh './jenkins_stats_script.sh'
|
||||
}
|
||||
}
|
||||
stage('archiveArtifacts') {
|
||||
steps {
|
||||
archiveArtifacts 'dataset-stats.txt'
|
||||
stage('Archive artifacts') {
|
||||
steps{
|
||||
archiveArtifacts artifacts: 'netflix_stats.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,3 +2,9 @@ Inżynieria Uczenia Maszynowego
|
||||
Dataset: https://www.kaggle.com/eugenioscionti/scraping-rotten-tomatoes-to-enrich-netflix-dataset
|
||||
ium_zadanie1.py - python script for Zadanie 1
|
||||
run.sh - bash script with dataset download from kaggle and running ium_zadanie1.py
|
||||
|
||||
Jenkinsfile - Jenkinsfile for classes 3 - create-Dataset
|
||||
Jenkinsfile-stats - Jenkinsfile for classes 3 - dataset-stats
|
||||
|
||||
Dockerfile - Dockerfile for classes 4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user