Skip to content
Snippets Groups Projects

Add jenkins build job for linux

Closed Kim Goh requested to merge (removed):add-linux-build-job into main
1 file
+ 61
0
Compare changes
  • Side-by-side
  • Inline
+ 61
0
@@ -18,6 +18,67 @@ pipeline {
stages {
stage('Linux and Windows build') {
parallel {
stage('Linux') {
agent {
kubernetes {
label 'roadlogicsuite-agent-pod-' + env.BUILD_NUMBER
yaml """
apiVersion: v1
kind: Pod
spec:
containers:
- name: roadlogicsuite-build
image: rlstester1/road-logic-suite-dev:latest
tty: true
resources:
limits:
memory: "16Gi"
cpu: "4"
requests:
memory: "16Gi"
cpu: "4"
- name: jnlp
volumeMounts:
- name: volume-known-hosts
mountPath: /home/jenkins/.ssh
volumes:
- name: volume-known-hosts
configMap:
name: known-hosts
"""
}
}
stages {
stage('Linux: Setup environment') {
steps {
container('roadlogicsuite-build') {
sh 'bash repo/utils/ci/scripts/10_build_prepare.sh'
sh 'bash repo/utils/ci/scripts/20_configure.sh'
}
}
}
stage('Linux: Build RoadLogicSuite') {
steps {
container('roadlogicsuite-build') {
sh 'bash repo/utils/ci/scripts/30_build.sh'
}
}
}
stage('Linux: Run Unittest') {
steps {
container('roadlogicsuite-build') {
sh 'bash repo/utils/ci/scripts/40_test.sh'
}
}
}
}
post {
always {
archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false
junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml'
}
}
}
stage('Windows') {
agent {
label 'windows'
Loading