diff --git a/Jenkinsfile-train b/Jenkinsfile-train index 2c1d0d0..800e750 100644 --- a/Jenkinsfile-train +++ b/Jenkinsfile-train @@ -18,35 +18,12 @@ pipeline { ) } stages { - stage('First step') { - steps { - echo 'Hello world!' - } - } - stage('Checkout') { - steps { - checkout([$class: 'GitSCM', branches: [[name: '*/feature']], extensions: [], userRemoteConfigs: [ - [url: 'https://git.wmi.amu.edu.pl/s478839/ium_478839.git']]]) - } - } - stage('Shell Script') { - steps { - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { - sh "chmod +x -R ${env.WORKSPACE}" - sh './skrypt.sh' - } - } - } - stage('Arichve') { - steps{ - archiveArtifacts artifacts: 'understat.csv', followSymlinks: false - archiveArtifacts artifacts: 'understat_per_game.csv', followSymlinks: false - archiveArtifacts artifacts: 'understat.csv.dev', followSymlinks: false - archiveArtifacts artifacts: 'understat.csv.train', followSymlinks: false - archiveArtifacts artifacts: 'understat.csv.test', followSymlinks: false - archiveArtifacts artifacts: 'understat.csv.cutted', followSymlinks: false - } - } + stage('Train-stage'){ + steps { + copyArtifacts filter: '*', projectName: 's478839-create-dataset' + sh 'python3 ./ml_pytorch.py' + archiveArtifacts artifacts: 'Model_xPosition.pkl', followSymlinks: false + } + } } } \ No newline at end of file