37 lines
894 B
Groovy
37 lines
894 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
buildDiscarder(
|
|
logRotator(
|
|
numToKeepStr: '3'
|
|
)
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage("Build on Linux") {
|
|
agent {
|
|
label 'flutter'
|
|
}
|
|
|
|
steps {
|
|
sh '''
|
|
#!/bin/bash
|
|
|
|
./compile.sh
|
|
'''
|
|
}
|
|
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: "dart/out/*", fingerprint: true
|
|
archiveArtifacts artifacts: "cpp/build/vsleep-cpp", fingerprint: true
|
|
archiveArtifacts artifacts: "cpp/build/pause-cpp", fingerprint: true
|
|
archiveArtifacts artifacts: "cpp/build/filldisk-cpp", fingerprint: true
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|