2022-03-21 11:06:31 +01:00
|
|
|
pipeline {
|
2022-04-03 11:39:13 +02:00
|
|
|
agent {
|
2022-04-03 13:27:19 +02:00
|
|
|
dockerfile {
|
|
|
|
additionalBuildArgs '-t ium'
|
|
|
|
}
|
2022-04-03 11:39:13 +02:00
|
|
|
}
|
2022-03-27 13:25:02 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'kamilab0bkowska',
|
2022-03-27 14:00:17 +02:00
|
|
|
description: 'kaggle username',
|
2022-03-27 13:25:02 +02:00
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
2022-03-27 13:27:01 +02:00
|
|
|
)
|
2022-03-27 13:25:02 +02:00
|
|
|
password(
|
2022-04-03 11:39:13 +02:00
|
|
|
defaultValue: '4825f5ebf3b5b834643d24c726593f39',
|
2022-03-27 14:00:17 +02:00
|
|
|
description: 'kaggle passowrd',
|
2022-03-27 13:25:02 +02:00
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
}
|
2022-03-27 14:02:26 +02:00
|
|
|
|
2022-03-21 11:06:31 +01:00
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
2022-03-27 13:39:11 +02:00
|
|
|
|
2022-03-27 13:25:02 +02:00
|
|
|
stage('Get data save artifacts') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
2022-04-03 11:39:13 +02:00
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
2022-04-03 13:43:13 +02:00
|
|
|
sh 'ls'
|
|
|
|
sh 'pwd'
|
2022-03-27 13:25:02 +02:00
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2022-04-03 13:43:13 +02:00
|
|
|
sh "cp appstrain.csv ${WORKSPACE}"
|
|
|
|
sh "cp appstest.csv ${WORKSPACE}"
|
|
|
|
sh "cp appsvalidate.csv ${WORKSPACE}"
|
2022-04-03 13:39:56 +02:00
|
|
|
archiveArtifacts artifacts: 'appstrain.csv, appstest.csv, appsvalidate.csv'
|
2022-03-27 13:25:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-21 11:06:31 +01:00
|
|
|
}
|
2022-03-27 13:25:02 +02:00
|
|
|
}
|
|
|
|
|