pipeline {
    agent {dockerfile true}
	parameters {
		buildSelector(
            defaultSelector: lastSuccessful(),
            description: 'Last successfull artifact',
            name: 'BUILD_SELECTOR'
        )
	}
    stages {
		stage('copyArtifacts') {
            steps {
                copyArtifacts fingerprintArtifacts: true, projectName: 's434705-training/master', selector: buildParameter('BUILD_SELECTOR')
            }
        }
    }
}