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

withGitCrypt step unit test #24

Open
dtschan opened this issue Oct 22, 2020 · 0 comments
Open

withGitCrypt step unit test #24

dtschan opened this issue Oct 22, 2020 · 0 comments

Comments

@dtschan
Copy link
Member

dtschan commented Oct 22, 2020

Implement unit test for withGitCrypt step which tests:

  • Works whether git-crypt is in PATH or not
    • Installs git-crypt if not in PATH
  • If credentialsId is not null
    • Calls git-crypt unlock ${gitCryptFile} where gitCryptFile is the git-crypt key stored in the Jenkins credential identified by credentialsId
  • Calls the passed closure
  • If credentialsId is not null
    • Calls git-crypt lock, even when the passed closure threw an exception
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

1 participant