move commit to job
use args
improve GetenvJson
Merge pull request #3183 from vieux/job_commit

Move commit to job