Because of the way import package jobs are triggered by package build jobs the normal Jenkins shutdown procedures will block triggering the import package jobs required to complete a packaging job, preventing jobs from finishing (until they fail due to timeout).
The added script can be used to mark build agents offline in order to drain running packaging jobs while allowing the repo host to continue importing packages to let jobs finish.
Because of the way import package jobs are triggered by package build jobs the normal Jenkins shutdown procedures will block triggering the import package jobs required to complete a packaging job, preventing jobs from finishing (until they fail due to timeout).
The added script can be used to mark build agents offline in order to drain running packaging jobs while allowing the repo host to continue importing packages to let jobs finish.