Set metadatas when using cli (Closes: #1608)

Status Job ID Name Coverage
  Build
canceled #10079
build_bionic

canceled #10078
build_buster

canceled #10077
build_stretch

 
  Sign
canceled #10080
sign