代码拉取完成,页面将自动刷新
pipeline {
agent {
kubernetes {
label 'my-agent-pod'
yaml """
apiVersion: v1
kind: Pod
spec:
containers:
- name: jnlp
resources:
limits:
memory: "1Gi"
cpu: "500m"
requests:
memory: "1Gi"
cpu: "500m"
- name: ubuntu-sumo
image: ghcr.io/eclipse/eclipse-sumo-build-ubuntu:latest
tty: true
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "1"
command:
- cat
env:
- name: "MAVEN_OPTS"
value: "-Duser.home=/home/jenkins"
volumeMounts:
- name: settings-xml
mountPath: /home/jenkins/.m2/settings.xml
subPath: settings.xml
readOnly: true
- name: settings-security-xml
mountPath: /home/jenkins/.m2/settings-security.xml
subPath: settings-security.xml
readOnly: true
- name: m2-repo
mountPath: /home/jenkins/.m2/repository
volumes:
- name: settings-xml
secret:
secretName: m2-secret-dir
items:
- key: settings.xml
path: settings.xml
- name: settings-security-xml
secret:
secretName: m2-secret-dir
items:
- key: settings-security.xml
path: settings-security.xml
- name: m2-repo
emptyDir: {}
"""
}
}
stages {
stage('Building SUMO') {
steps {
container('ubuntu-sumo') {
sh '''
git fetch --tags --force
mkdir -p cmake-build
cd cmake-build
export CC=gcc; export CXX=g++;
cmake ..
make -j2
'''
}
}
}
stage('Build TraaS') {
steps {
container('ubuntu-sumo') {
sh '''
cd cmake-build
make traas
'''
}
}
}
stage('Maven Artifact - libsumo') {
steps {
container('ubuntu-sumo') {
sh '''
cd cmake-build/src/libsumo
mvn --batch-mode deploy
'''
}
}
}
stage('Maven Artifact - libtraci') {
steps {
container('ubuntu-sumo') {
sh '''
cd cmake-build/src/libtraci
mvn --batch-mode deploy
'''
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。