diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index 60b7856..031bef3 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -1,17 +1,15 @@ pipeline { agent any - - parameters{ - buildSelector( - defaultSelector: lastSuccessful(), - description: 'Which build to use for copying artifacts', - name: 'BUILD_SELECTOR') - } stages { + stage('First') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s478815/ium_478815.git']]]) + } + } stage('CopyArtifacts') { steps { - copyArtifacts fingerprintArtifacts: true, projectName: 's478815-create-datasets', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts fingerprintArtifacts: true, projectName: 's478815-create-dataset', selector: lastSuccessful() sh "chmod +x -R ${env.WORKSPACE}" sh './skrypt_stats.sh' }