mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
36 lines
636 B
Groovy
36 lines
636 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('build') {
|
|
agent {
|
|
docker {
|
|
image 'shenmo7192/uos-21-dtk5.4:v1.0'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'dpkg-buildpackage && tree .'
|
|
}
|
|
}
|
|
|
|
stage('archive') {
|
|
steps {
|
|
archiveArtifacts(artifacts: 'build/src/spark-store', allowEmptyArchive: true, defaultExcludes: true)
|
|
}
|
|
}
|
|
|
|
stage('send') {
|
|
agent {
|
|
dockerfile {
|
|
filename '.gitee/Dockerfile'
|
|
}
|
|
}
|
|
environment {
|
|
gitee_token = credentials('1')
|
|
}
|
|
steps {
|
|
sh 'python3 .gitee/callback.py'
|
|
}
|
|
}
|
|
}
|
|
}
|