-
Notifications
You must be signed in to change notification settings - Fork 15
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
gangplank: additions to aid in FCOS AARCH64 building #83
Conversation
8080351
to
d4e055c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Glad to see this happening :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks for adding it Dusty!
vars/gangplank.groovy
Outdated
withCredentials([ | ||
string(credentialsId: 'fcos-aarch64-builder-host-string', | ||
variable: 'REMOTEHOST'), | ||
string(credentialsId: 'fcos-aarch64-builder-uid-string', | ||
variable: 'REMOTEUID'), | ||
sshUserPrivateKey(credentialsId: 'fcos-aarch64-builder-sshkey-key', | ||
usernameVariable: 'REMOTEUSER', | ||
keyFileVariable: 'CONTAINER_SSHKEY') | ||
]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this seems odd in the library. It's specific to the pipeline. I'd personally prefer having it live in the pipeline as a separate function (and then here we can just pass in the user, host, and uid bits). At the very least, let's make them parameters instead of hardcoding the ID strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved bits to the pipeline in gp.groovy
.
- Adds `runSingleCmd()` for running with `--singleCmd` - Adds error checking for `runSpec()`. - Converts existing `runGangplank()` into internal function `_runGangplank()` - Adds `runGangplank()`, switches between `runSingleCmd()` and `runSpec()` - Adds `_getArch()` for parsing out and adding `--arch=$arch`
d4e055c
to
5820f10
Compare
The pipeline specific bits have been moved to the pipeline. Updated list of things done here:
|
Adds runSingleCmd and error checking for runSpec. Also adds
getGangPlankFCOSAARCH64Params()
with a default set of params forrunning against the FCOS AARCH64 builder and
gangPlankFCOSAARCH64BuilderWrapper()
with default setup andinvocation for executing gangplank against that builder.