2025-02-21 18:31:34 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
kubernetes {
|
|
|
|
cloud 'rsys-devel'
|
2025-02-21 22:18:47 +00:00
|
|
|
defaultContainer 'pip'
|
2025-02-21 19:04:32 +00:00
|
|
|
inheritFrom 'pip'
|
2025-02-21 18:31:34 +00:00
|
|
|
}
|
|
|
|
}
|
2025-02-21 19:04:32 +00:00
|
|
|
|
2025-02-21 18:31:34 +00:00
|
|
|
stages {
|
|
|
|
stage ("install") {
|
|
|
|
steps {
|
2025-02-22 16:45:33 +00:00
|
|
|
sh 'useradd galaxy -m'
|
|
|
|
sh 'apt update'
|
|
|
|
sh 'apt install sudo -y'
|
2025-02-21 18:31:34 +00:00
|
|
|
sh 'pip install -r requirements.txt'
|
2025-02-21 22:14:07 +00:00
|
|
|
sh 'pip install standard-imghdr'
|
2025-02-21 18:31:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ("lint") {
|
|
|
|
steps {
|
|
|
|
sh "planemo lint autobigs-cli.xml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ("test") {
|
|
|
|
steps {
|
|
|
|
sh 'mkdir test_results'
|
2025-02-22 16:45:33 +00:00
|
|
|
sh "sudo -u galaxy planemo test autobigs-cli.xml --test_output_junit test_results/junit_results.xml --test_output_json test_results/results.json --test_output test_results/human.html"
|
2025-02-21 18:31:34 +00:00
|
|
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results/junit_report.xml', stopProcessingIfError: true)]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|