I tried to create a customized ubuntu iso image file using Jenkins pipeline. When i try to execute these command I'll be getting the above permission error.
%sudo su
%sudo printf $(du -sx --block-size=1 edit | cut -f1) > extracted/casper/filesystem.size
cannot create extract-cd/casper/filesystem.size: Permission denied
How can I resolve this?