I am building through jenkins rpm
sh "fpm -s dir -t rpm -a noarch -d 'rpm-name >= 5.19.0' -d 'rpm-name >= 2.0' -n rpm-${env.BRANCH_NAME} -v 1.1 --iteration `git rev-list HEAD --count` --rpm-auto-add-directories --rpm-user root --rpm-group root --log debug --config-files config=/opt/project-name/conf config=/opt/prject-name/conf"
but getting error on build the target directory does not exist
/usr/local/share/gems/gems/fpm-1.6.3/lib/fpm/package/rpm.rb:479:in `block in output': Config file path /tmp/package-dir-staging-e648f3cb0770503185d49ff3505baec11707f5c3815341216d852e70b305/config=/opt/project-name/conf does not exist (RuntimeError)
from /usr/local/share/gems/gems/fpm-1.6.3/lib/fpm/package/rpm.rb:477:in `each'
from /usr/local/share/gems/gems/fpm-1.6.3/lib/fpm/package/rpm.rb:477:in `output'
from /usr/local/share/gems/gems/fpm-1.6.3/lib/fpm/command.rb:473:in `execute'
from /usr/local/share/gems/gems/clamp-1.0.1/lib/clamp/command.rb:68:in `run'
from /usr/local/share/gems/gems/fpm-1.6.3/lib/fpm/command.rb:560:in `run'
from /usr/local/share/gems/gems/clamp-1.0.1/lib/clamp/command.rb:133:in `run'
from /usr/local/share/gems/gems/fpm-1.6.3/bin/fpm:8:in `<top (required)>'
from /usr/local/bin/fpm:23:in `load'
from /usr/local/bin/fpm:23:in `<main>'