In previous lives I have seen the use of rpm-sign.exp files use to handle this. Something like:
#!/usr/bin/expect -f ### rpm-sign.exp -- Sign RPMs by sending the passphrase. spawn rpm --define "_gpg_name xxxxxxx" --addsign {*}$argv expect -exact "Enter pass phrase: " send -- "Secret passphrase\r" # or send {GPGPASSWORD} expect eof ## end of rpm-sign.exp On Sunday, June 2, 2019 at 6:04:35 AM UTC-7, Sverre Moe wrote: > > I am trying to sign our RPM packages built on Jenkins. However it fails, > probably because it asks for the passphrase. > > gpg: signing failed: Inappropriate ioctl for device > error: gpg exec failed (2) > > Sometimes it works for a little while when I have signed manually in the > console. > When I sign manually I get to enter the passphrase in an ncurses input. > Maybe it caches this for some times and therefore it works in Jenkins for > that time period. > > Is there anyway I can provide the passphrase using withCredentials? > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cf1384ef-a55e-4e04-84ab-2ca7b65d0f72%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.