[go: up one dir, main page]

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

Provide Secrets to IDE not works because multiline is not supported #28

Open
MCMicS opened this issue Oct 12, 2021 · 3 comments
Open
Assignees

Comments

@MCMicS
Copy link
MCMicS commented Oct 12, 2021

The documentation says:

using environment variables provided within the Run/Debug Configuration

https://plugins.jetbrains.com/docs/intellij/plugin-signing.html#provide-secrets-to-ide

This not works because environment variables seems not support multiline values. The pem content is stored without newlines and it fails with:

gradle-intellij-plugin :jenkins-control-plugin:signPlugin] Error during Marketplace ZIP Signer CLI execution:
Exception in thread "main" java.lang.NullPointerException: pemObject must not be null
	at org.jetbrains.zip.signer.signer.PrivateKeyUtils.loadKeyPair(PrivateKeyUtils.kt:62)
	at org.jetbrains.zip.signer.signer.PrivateKeyUtils.loadKeyPair(PrivateKeyUtils.kt:48)
	at org.jetbrains.zip.signer.signer.SignerInfoLoader.loadSignerInfoFromText(SignerInfoLoader.kt:30)
	at org.jetbrains.zip.signer.ZipSigningTool.sign(ZipSigningTool.kt:58)
	at org.jetbrains.zip.signer.ZipSigningTool.main(ZipSigningTool.kt:29)
@MCMicS MCMicS changed the title Provide Secrets to IDE not works because multiline is not supoorted Provide Secrets to IDE not works because multiline is not supported Oct 13, 2021
@Konafets
Copy link

I faced the same issue. Is there a workaround to "fix" this?

@AlexanderPrendota
Copy link
Collaborator

Hi, please vote here: https://youtrack.jetbrains.com/issue/IDEA-185315

@dinbtechit
Copy link

I'm facing the same issue. Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants