you are giving an absolute path with: /var/www/html
not sure if this fix it but first i would try it with an relative path (without the first "/"): var/www/html
my second try would be to navigate to the path separately in you pipeline and than do the chmod on the folder name in the next step