Update Dockerfile
This commit is contained in:
parent
cf61bc31ac
commit
204ce01544
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -1,12 +1,19 @@
|
||||
pipeline{
|
||||
agent any
|
||||
agent {
|
||||
dockerfile true
|
||||
}
|
||||
parameters {
|
||||
string(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false)
|
||||
}
|
||||
stages{
|
||||
stage('Docker') {
|
||||
steps {
|
||||
sh 'python3 ./stats.py'
|
||||
}
|
||||
}
|
||||
stage('Stage 1'){
|
||||
steps{
|
||||
echo 'Init Jenkins File!'
|
||||
echo 'Hello Jenkins!'
|
||||
}
|
||||
}
|
||||
stage('checkout: Check out from version control'){
|
||||
@ -17,14 +24,14 @@ pipeline{
|
||||
stage('sh: Shell Script'){
|
||||
steps{
|
||||
withEnv(["CUTOFF=${params.CUTOFF}"]) {
|
||||
sh "chmod 777 ./data.sh"
|
||||
sh "./data.sh"
|
||||
sh "chmod 777 ./script.sh"
|
||||
sh "./script.sh"
|
||||
}
|
||||
}}
|
||||
stage('Archive artifacts'){
|
||||
steps{
|
||||
archiveArtifacts 'test.csv'
|
||||
archiveArtifacts 'validation.csv'
|
||||
archiveArtifacts 'dev.csv'
|
||||
archiveArtifacts 'train.csv'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user