Trello card url: https://trello.com/c/aHk4URGz/144-as-a-developer-i-want-a-pipeline-step-available-that-allows-me-to-submit-a-binary-to-kryptowire-such-that-i-can-scan-my-binaries
*What*
Create a new DSL method that will be made available for use in a Jenkinsfile.
Suggested method name "kwAnalyzeBinary", will require 2 parameters, platform and binaryPath.
When called this will use the configured credentials to submit the binary to the Kryptowire endpoint.
*How*
* Create a class that extends the hudson.tasks.Builder class and implements enkins.tasks.SimpleBuildStep interface; * Create a class that extends the org.jenkinsci.plugins.workflow.steps.AbstractStepImpl class; * Create the required jelly files for both classes.
Sample code:
* https://github.com/aerogear/xcode-plugin/blob/digger/src/main/java/au/com/rayh/CodeSignWrapper.java * https://github.com/aerogear/xcode-plugin/blob/digger/src/main/java/au/com/rayh/CodeSignStep.java * https://github.com/aerogear/xcode-plugin/blob/digger/src/main/resources/au/com/rayh/CodeSignWrapper/config.jelly * https://github.com/aerogear/xcode-plugin/blob/digger/src/main/resources/au/com/rayh/CodeSignStep/config.jelly |
|