TGC-ISS/Jenkinsfile

40 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-05-22 14:05:29 +02:00
void checkout_project(String repoUrl, String branch = 'develop') {
checkout([
$class: 'GitSCM',
branches: [
[name: "*/${branch}"]
],
extensions: [
[$class: 'CleanBeforeCheckout'],
[$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: true, recursiveSubmodules: true, reference: '', trackingSubmodules: false]
],
submoduleCfg: [],
userRemoteConfigs: [
[credentialsId: 'gitea-jenkins', url: repoUrl]
]
])
}
pipeline {
agent {
docker {
image 'git.minres.com/tooling/riscof_sail:latest'
}
}
stages {
2024-05-22 15:21:57 +02:00
stage("build TGC-ISS"){
2024-05-22 14:05:29 +02:00
steps {
2024-05-22 15:21:57 +02:00
sh '''
conan profile new --detect --force default
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWITH_ASMJIT=OFF -DWITH_TCC=OFF -DWITH_LLVM=OFF
cmake --build build -j
'''
2024-05-22 14:05:29 +02:00
}
}
}
}