-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for insecure TLS connections (#34)
- Add `crypto/tls` import in `jenkins.go` - Add `Client` field to `Jenkins` struct - Modify `NewJenkins` function to accept an `insecure` parameter and configure HTTP client accordingly - Update `sendRequest` method to use the `Client` field from the `Jenkins` struct - Update tests in `jenkins_test.go` to include the `insecure` parameter in `NewJenkins` calls - Add `insecure` flag to CLI options in `main.go` - Add `Insecure` field to `Plugin` struct - Update `Plugin.Exec` method to pass `Insecure` field to `NewJenkins` Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Loading branch information
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters