Jenkinsfile statystyki

This commit is contained in:
Kornelia Girejko 2022-03-27 22:32:11 +02:00
parent 74d76df4f5
commit 0fba257267

View File

@ -2,54 +2,23 @@ pipeline {
agent any agent any
parameters { parameters {
string( buildSelector(
defaultValue: 'kgirejko', defaultSelector: lastSuccessful(),
description: 'Kaggle username', description: 'Which build to use for copying artifacts',
name: 'KAGGLE_USERNAME', name: 'BUILD_SELECTOR'
trim: false )
)
password(
defaultValue: '51854c15661583860a60db232a7026f0',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '',
description: '',
name: 'CUTOFF'
)
}
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"
CUTOFF="$params.CUTOFF"
} }
stages { stages {
stage('First') { stage('CopyArtifacts') {
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { copyArtifacts fingerprintArtifacts: true, projectName: 's478815-creat-datasets', selector: buildParameter('BUILD_SELECTOR')
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh "chmod +x -R ${env.WORKSPACE}"
sh './skrypt.sh'
}
} }
}
stage('Second') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s478815/ium_478815.git']]])
sh "chmod a+x ./skrypt.sh"
}
} }
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts 'data.csv'
archiveArtifacts 'data.csv.train'
archiveArtifacts 'data.csv.test'
archiveArtifacts 'data.csv.dev'
archiveArtifacts 'data.csv.shuf.uptd' archiveArtifacts 'data.csv.shuf.uptd'
} }
} }