Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
5a50f9c5
Commit
5a50f9c5
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
CI: main case (rules instead of deprecated only/except)
parent
e14bc14c
No related branches found
No related tags found
1 merge request
!451
After cmake and const refactor
Pipeline
#10233
passed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+115
-9
115 additions, 9 deletions
.gitlab-ci.yml
with
115 additions
and
9 deletions
.gitlab-ci.yml
+
115
−
9
View file @
5a50f9c5
...
@@ -98,9 +98,11 @@ build_and_test:focal:
...
@@ -98,9 +98,11 @@ build_and_test:focal:
script
:
script
:
-
*build_and_test_definition
-
*build_and_test_definition
############ DEPLOY PLUGINS ############
############ DEPLOY PLUGINS
ANY BRANCY EXCEPT FOR main
############
deploy_imu
:
deploy_imu
:
stage
:
deploy_plugins
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
DEPLOY_CI_ROS
:
"
false"
...
@@ -111,6 +113,8 @@ deploy_imu:
...
@@ -111,6 +113,8 @@ deploy_imu:
deploy_gnss
:
deploy_gnss
:
stage
:
deploy_plugins
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
DEPLOY_CI_ROS
:
"
false"
...
@@ -121,6 +125,8 @@ deploy_gnss:
...
@@ -121,6 +125,8 @@ deploy_gnss:
deploy_vision
:
deploy_vision
:
stage
:
deploy_plugins
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
DEPLOY_CI_ROS
:
"
false"
...
@@ -131,6 +137,8 @@ deploy_vision:
...
@@ -131,6 +137,8 @@ deploy_vision:
deploy_laser
:
deploy_laser
:
stage
:
deploy_plugins
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
DEPLOY_CI_ROS
:
"
false"
...
@@ -141,6 +149,8 @@ deploy_laser:
...
@@ -141,6 +149,8 @@ deploy_laser:
deploy_apriltag
:
deploy_apriltag
:
stage
:
deploy_plugins
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
DEPLOY_CI_ROS
:
"
false"
...
@@ -151,6 +161,8 @@ deploy_apriltag:
...
@@ -151,6 +161,8 @@ deploy_apriltag:
deploy_bodydynamics
:
deploy_bodydynamics
:
stage
:
deploy_plugins
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
DEPLOY_CI_ROS
:
"
false"
...
@@ -159,18 +171,90 @@ deploy_bodydynamics:
...
@@ -159,18 +171,90 @@ deploy_bodydynamics:
branch
:
$WOLF_BODYDYNAMICS_BRANCH
branch
:
$WOLF_BODYDYNAMICS_BRANCH
strategy
:
depend
strategy
:
depend
############ DEPLOY PLUGINS FOR main ############
deploy_imu_main
:
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_lib/plugins/imu
branch
:
main
strategy
:
depend
deploy_gnss_main
:
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_lib/plugins/gnss
branch
:
main
strategy
:
depend
deploy_vision_main
:
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_lib/plugins/vision
branch
:
main
strategy
:
depend
deploy_laser_main
:
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_lib/plugins/laser
branch
:
main
strategy
:
depend
deploy_apriltag_main
:
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_lib/plugins/apriltag
branch
:
main
strategy
:
depend
deploy_bodydynamics_main
:
stage
:
deploy_plugins
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
DEPLOY_CI_ROS
:
"
false"
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_lib/plugins/bodydynamics
branch
:
main
strategy
:
depend
############ WAIT FOR PLUGINS ############
############ WAIT FOR PLUGINS ############
final_all_plugins
:
final_all_plugins
:
stage
:
final_plugins
stage
:
final_plugins
script
:
script
:
-
echo "ALL PLUGINS PIPELINES SUCCEED!!!"
-
echo "ALL PLUGINS PIPELINES SUCCEED!!!"
############ DEPLOY WOLF_ROS_NODE ############
############ DEPLOY WOLF_ROS_NODE
EXCEPT FOR main
############
deploy_wolf_ros_node
:
deploy_wolf_ros_node
:
stage
:
deploy_ros
stage
:
deploy_ros
only
:
rules
:
variables
:
-
if
:
$CI_COMMIT_BRANCH != "main" && $DEPLOY_CI_ROS == "true"
-
$DEPLOY_CI_ROS == "true"
variables
:
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_IMU_BRANCH
:
$WOLF_IMU_BRANCH
WOLF_IMU_BRANCH
:
$WOLF_IMU_BRANCH
...
@@ -189,10 +273,32 @@ deploy_wolf_ros_node:
...
@@ -189,10 +273,32 @@ deploy_wolf_ros_node:
project
:
mobile_robotics/wolf_projects/wolf_ros/wolf_ros_node
project
:
mobile_robotics/wolf_projects/wolf_ros/wolf_ros_node
branch
:
$WOLF_ROS_CORE_BRANCH
branch
:
$WOLF_ROS_CORE_BRANCH
############ DEPLOY WOLF_ROS_NODE FOR main ############
deploy_wolf_ros_node_main
:
stage
:
deploy_ros
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main" && $DEPLOY_CI_ROS == "true"
variables
:
WOLF_CORE_BRANCH
:
$CI_COMMIT_BRANCH
WOLF_IMU_BRANCH
:
main
WOLF_GNSS_BRANCH
:
main
WOLF_LASER_BRANCH
:
main
WOLF_VISION_BRANCH
:
main
WOLF_APRILTAG_BRANCH
:
main
WOLF_BODYDYNAMICS_BRANCH
:
main
WOLF_ROS_IMU_BRANCH
:
main
WOLF_ROS_GNSS_BRANCH
:
main
WOLF_ROS_LASER_BRANCH
:
main
WOLF_ROS_VISION_BRANCH
:
main
WOLF_ROS_APRILTAG_BRANCH
:
main
WOLF_ROS_BODYDYNAMICS_BRANCH
:
main
trigger
:
project
:
mobile_robotics/wolf_projects/wolf_ros/wolf_ros_node
branch
:
main
no_deploy_wolf_ros_node
:
no_deploy_wolf_ros_node
:
stage
:
deploy_ros
stage
:
deploy_ros
script
:
script
:
-
echo "NOT deploying CI for wolf_ros_node, since DEPLOY_CI_ROS is $DEPLOY_CI_ROS"
-
echo "NOT deploying CI for wolf_ros_node, since DEPLOY_CI_ROS is $DEPLOY_CI_ROS (not
true
)"
except
:
rules
:
variables
:
-
if
:
$DEPLOY_CI_ROS != "true"
-
$DEPLOY_CI_ROS == "true"
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