Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force ordering between GPG and jarsigner #2285

Merged
merged 1 commit into from Apr 26, 2016
Merged

Force ordering between GPG and jarsigner #2285

merged 1 commit into from Apr 26, 2016

Conversation

kohsuke
Copy link
Member

@kohsuke kohsuke commented Apr 22, 2016

jarsigner adds signatures by updating the file itself, so we have
to run it before GPG plugin signs the bit, which happens in the 'verify'
phase.

The 'pre-integration-test' phase happens right after the 'package'
phase and before the 'verify' phase, so this is adequate.

See: https://groups.google.com/forum/#!msg/jenkinsci-users/POk8TOcwOM8/i5wn2a0MMwAJ

jarsigner adds signatures by updating the file itself, so we have
to run it before GPG plugin signs the bit, which happens in the 'verify'
phase.

The 'pre-integration-test' phase happens right after the 'package'
phase and before the 'verify' phase, so this is adequate.

See: https://groups.google.com/forum/#!msg/jenkinsci-users/POk8TOcwOM8/i5wn2a0MMwAJ
@Vlatombe
Copy link
Member

LGTM. You could even use 'package' phase as executions bound through the pom are executed after executions from the lifecycle.

@recena
Copy link
Contributor

recena commented Apr 23, 2016

@kohsuke Why not in prepare-package or as @Vlatombe mentions, in package?

@Vlatombe
Copy link
Member

Vlatombe commented Apr 23, 2016

@recena the .war doesn't exist yet in prepare-package.

@recena
Copy link
Contributor

recena commented Apr 23, 2016

@Vlatombe Ups, It is true. I did not keep in mind that we need to sign the war file ...

@kohsuke kohsuke merged commit 8356bd4 into master Apr 26, 2016
@kohsuke kohsuke deleted the jarsigner-and-gpg branch April 26, 2016 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants