JENKINS-21009 Fixed taskId in the folder case