27 lines
697 B
Groovy
27 lines
697 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Clone repository') {
|
|
steps {
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
extensions: [], submoduleCfg: [],
|
|
userRemoteConfigs: [[url: 'https://github.com/your-username/your-repo.git']]])
|
|
}
|
|
}
|
|
|
|
stage('Process data') {
|
|
steps {
|
|
sh './process_data.sh'
|
|
}
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
|
steps {
|
|
archiveArtifacts artifacts: 'results.txt', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
}
|