ium_478831/jenkinsfile

27 lines
960 B
Plaintext
Raw Normal View History

2022-03-21 11:05:14 +01:00
pipeline {
2022-03-27 17:02:10 +02:00
agent any
stages {
stage('Checkout') {
steps {
script {
// The below will clone your repo and will be checked out to master branch by default.
git credentialsId: 'jenkins-user-github', url: 'https://git.wmi.amu.edu.pl/s478831/ium_478831.git'
// Do a ls -lart to view all the files are cloned. It will be clonned. This is just for you to be sure about it.
sh "ls -lart ./*"
// List all branches in your repo.
sh "git branch -a"
// Checkout to a specific branch in your repo.
sh "git checkout master"
sh "curl -o adult-income-dataset.csv https://git.wmi.amu.edu.pl/s478831/ium_478831/src/commit/afaecaa22f5e6f24e43aab1e4155c8d033582d3e/adult-income-dataset.csv"
2022-03-27 17:39:11 +02:00
2022-03-27 17:02:10 +02:00
}
}
2022-03-27 17:39:11 +02:00
post {
always {
archiveArtifacts artifacts: 'adult-data.txt', onlyIfSuccessful: true
}
}
2022-03-21 11:05:14 +01:00
}
2022-03-27 17:02:10 +02:00
}
2022-03-21 11:05:14 +01:00
}