installing rpm config file into target mutiple folders

25 views
Skip to first unread message

kunalsing thakur

unread,
Jun 9, 2017, 2:14:07 AM6/9/17
to fpm-users
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>'

Daniel Haskin

unread,
Jun 12, 2017, 1:59:31 PM6/12/17
to fpm-...@googlegroups.com
You're going to want to remove the "conf=" from your config files in that command line. It should look like this instead:

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 /opt/project-name/conf1 /opt/project-name/conf2

--
You received this message because you are subscribed to the Google Groups "fpm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fpm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Haskin

unread,
Jun 12, 2017, 2:00:24 PM6/12/17
to fpm-...@googlegroups.com
Wrong. Sorry, typo. This is the command:

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 /opt/project-name/conf1 --config-files /opt/project-name/conf2
Reply all
Reply to author
Forward
0 new messages