feat: docker
This commit is contained in:
parent
3ca40ad1f5
commit
1fd50e7814
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -1,5 +1,10 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile'
|
||||||
|
args '-u root:root'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Preparation') {
|
stage('Preparation') {
|
||||||
@ -50,6 +55,8 @@ pipeline {
|
|||||||
unzip -o olympics-124-years-datasettill-2020.zip
|
unzip -o olympics-124-years-datasettill-2020.zip
|
||||||
|
|
||||||
echo "Processed Data" > output.txt
|
echo "Processed Data" > output.txt
|
||||||
|
|
||||||
|
python3 /app/scripts/stats.py -i olympics-124-years-datasettill-2020/Athletes_summer_games.csv -o output.txt
|
||||||
'''
|
'''
|
||||||
sh "head -n ${params.CUTOFF} olympics-124-years-datasettill-2020/Athletes_summer_games.csv"
|
sh "head -n ${params.CUTOFF} olympics-124-years-datasettill-2020/Athletes_summer_games.csv"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
docker {
|
||||||
|
image 's487187/ium:general'
|
||||||
|
args '-u root:root'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
buildSelector(
|
buildSelector(
|
||||||
@ -42,7 +47,7 @@ pipeline {
|
|||||||
sh '''
|
sh '''
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
wc -l olympics-124-years-datasettill-2020/Athletes_summer_games.csv > output.txt
|
python3 count_lines.py --input_file olympics-124-years-datasettill-2020/Athletes_summer_games.csv > output.txt
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user