Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
road-logic-suite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Stump
road-logic-suite
Commits
f975238d
Commit
f975238d
authored
1 year ago
by
Xiao Pan
Browse files
Options
Downloads
Patches
Plain Diff
Test mounted cache
parent
cd43916b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
utils/ci/Jenkinsfile
+23
-37
23 additions, 37 deletions
utils/ci/Jenkinsfile
utils/ci/scripts/10_prepare.sh
+21
-21
21 additions, 21 deletions
utils/ci/scripts/10_prepare.sh
utils/ci/scripts/21_run_build_and_test.sh
+1
-1
1 addition, 1 deletion
utils/ci/scripts/21_run_build_and_test.sh
with
45 additions
and
59 deletions
utils/ci/Jenkinsfile
+
23
−
37
View file @
f975238d
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
* SPDX-License-Identifier: EPL-2.0
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
*******************************************************************************/
pipeline
{
pipeline
{
agent
none
agent
none
options
{
options
{
...
@@ -25,24 +26,30 @@ apiVersion: v1
...
@@ -25,24 +26,30 @@ apiVersion: v1
kind: Pod
kind: Pod
spec:
spec:
containers:
containers:
- name: roadlogicsuite-build
- name: roadlogicsuite-build
image: xiaopanansys/road-logic-suite-dev:latest
image:
'
xiaopanansys/road-logic-suite-dev:latest
'
tty: true
tty: true
resources:
resources:
null
limits:
limits:
memory:
"
16Gi
"
memory: 16Gi
cpu:
"4"
cpu:
'4'
requests:
requests:
memory: "16Gi"
memory: 16Gi
cpu: "4"
cpu: '4'
- name: jnlp
volumeMounts:
volumeMounts:
- name: cache-volume
- name: volume-known-hosts
mountPath: /home/jenkins/cache
mountPath: /home/jenkins/.ssh
- name: jnlp
volumeMounts:
- name: volume-known-hosts
mountPath: /home/jenkins/.ssh
volumes:
volumes:
- name: volume-known-hosts
- name: volume-known-hosts
configMap:
configMap:
name: known-hosts
name: known-hosts
- name: cache-volume
persistentVolumeClaim:
claimName: cache-pvc
"""
"""
}
}
}
}
...
@@ -52,32 +59,11 @@ spec:
...
@@ -52,32 +59,11 @@ spec:
runScript
(
'10_prepare.sh'
)
runScript
(
'10_prepare.sh'
)
}
}
}
}
// stage('Run Small Checks') {
// steps {
// runScript('20_run_checks.sh')
// }
// }
stage
(
'Build and Tests'
)
{
stage
(
'Build and Tests'
)
{
steps
{
steps
{
runScript
(
'21_run_build_and_test.sh'
)
runScript
(
'21_run_build_and_test.sh'
)
}
}
}
}
// stage('Run Sanitizer Checks') {
// steps {
// runScript('23_sanitizer_checks.sh')
// }
// }
// stage('Run Clang-tidy Checks') {
// steps {
// runScript('22_clang_tidy_checks.sh')
// }
// }
// stage('Generate Artifacts') {
// steps {
// runScript('30_generate_artifacts.sh')
// }
// }
}
}
post
{
post
{
always
{
always
{
...
@@ -91,6 +77,6 @@ spec:
...
@@ -91,6 +77,6 @@ spec:
// Define a global function to run scripts in the 'roadlogicsuite-build' container
// Define a global function to run scripts in the 'roadlogicsuite-build' container
def
runScript
(
String
scriptName
)
{
def
runScript
(
String
scriptName
)
{
container
(
'roadlogicsuite-build'
)
{
container
(
'roadlogicsuite-build'
)
{
sh
"bash repo/utils/ci/scripts/${scriptName}"
sh
"bash repo/utils/ci/scripts/${scriptName}"
}
}
}
}
This diff is collapsed.
Click to expand it.
utils/ci/scripts/10_prepare.sh
+
21
−
21
View file @
f975238d
...
@@ -52,34 +52,34 @@ whereis buildifier
...
@@ -52,34 +52,34 @@ whereis buildifier
#
echo ">>> print system info"
echo
">>> print system info"
#
echo ">>> CPU Core Numbers and Frequency:"
echo
">>> CPU Core Numbers and Frequency:"
#
lscpu
lscpu
#
echo ">>> "
echo
">>> "
#
echo ">>> Memory Size:"
echo
">>> Memory Size:"
#
free -h
free
-h
#
echo ">>> "
echo
">>> "
#
echo ">>> Hard Disk Size:"
echo
">>> Hard Disk Size:"
#
df -h
df
-h
#
echo ">>> "
echo
">>> "
#
echo ">>> System Folder Structure"
echo
">>> System Folder Structure"
#
cd "${BASEDIR}" || exit 1
cd
"
${
BASEDIR
}
"
||
exit
1
#
ls -la
ls
-la
#
cd ..
cd
..
#
ls -la
ls
-la
#
cd ..
cd
..
#
echo $PWD
echo
$PWD
#
ls -la
ls
-la
#
cd ..
cd
..
#
echo $PWD
echo
$PWD
#
ls -la
ls
-la
echo
"Checkout git submodules recursively ..."
echo
"Checkout git submodules recursively ..."
git submodule update
--init
--recursive
git submodule update
--init
--recursive
This diff is collapsed.
Click to expand it.
utils/ci/scripts/21_run_build_and_test.sh
+
1
−
1
View file @
f975238d
...
@@ -16,7 +16,7 @@ MYDIR="$(dirname "$(readlink -f $0)")"
...
@@ -16,7 +16,7 @@ MYDIR="$(dirname "$(readlink -f $0)")"
BASEDIR
=
$(
realpath
"
${
MYDIR
}
/../../../.."
)
BASEDIR
=
$(
realpath
"
${
MYDIR
}
/../../../.."
)
CACHEDIR
=
$(
realpath
"
${
BASEDIR
}
/.cache"
)
CACHEDIR
=
$(
realpath
"
${
BASEDIR
}
/.cache"
)
BAZEL_CACHEDIR
=
$(
realpath
"
${
BASEDIR
}
/../../caches/bazel-road-logic-suite"
)
BAZEL_CACHEDIR
=
"/home/jenkins/cache"
# This override the cache folder of bazel
# This override the cache folder of bazel
export
TEST_TMPDIR
=
"
${
BAZEL_CACHEDIR
}
"
export
TEST_TMPDIR
=
"
${
BAZEL_CACHEDIR
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment