Deduplicate a lot of code

5 jobs for add-base-devel-tags in 35 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Lint
passed lint #6005

00:00:06

 
  Rootfs
failed rootfs:base #6006

00:00:28

failed rootfs:base-devel #6007

00:00:27

 
  Image
skipped image:base #6008
skipped image:base-devel #6009
 
Name Stage Failure
failed
rootfs:base-devel Rootfs
  Skipped: Current root is not booted.
(11/11) Warn about old perl modules
$ make dockerfile-image-base-devel
make: *** No rule to make target 'dockerfile-image-base-devel'. Stop.
Uploading artifacts for failed job
Uploading artifacts...
build.env: found 1 matching files and directories

Uploading artifacts as "dotenv" to coordinator... ok
id=6007 responseStatus=201 Created token=RkBwkkxN
ERROR: Job failed: exit code 1
failed
rootfs:base Rootfs
  Skipped: Current root is not booted.
(11/11) Warn about old perl modules
$ make dockerfile-image-base
make: *** No rule to make target 'dockerfile-image-base'. Stop.
Uploading artifacts for failed job
Uploading artifacts...
build.env: found 1 matching files and directories

Uploading artifacts as "dotenv" to coordinator... ok
id=6006 responseStatus=201 Created token=upcnjBby
ERROR: Job failed: exit code 1