pipeline {
    agent { 
        dockerfile true 
    }

    stages {
        stage('Build') {
            steps {
                // Get some code from a GitHub repository
                git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'

                sh 'ls'
                sh 'ls ..'
                sh 'python3 create_dataset.py'
                
                // To run Maven on a Windows agent, use
                // bat "mvn -Dmaven.test.failure.ignore=true clean package"
            }

            post {
                // If Maven was able to run the tests, even if some of the test
                // failed, record the test results and archive the jar file.
                success {
                    archiveArtifacts 'in_alphabet,out_alphabet,preprocessed.tsv'
                }
            }
        }
    }
}