How to set number of parallel jobs in ROS2 building?

You can either set the environment variable MAKEFLAGS or you can pass arbitrary arguments to make using ament build --make-flags ....