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

gangplank: additions to aid in FCOS AARCH64 building #83

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

dustymabe
Copy link
Member

@dustymabe dustymabe commented Jul 27, 2021

Adds runSingleCmd and error checking for runSpec. Also adds
getGangPlankFCOSAARCH64Params() with a default set of params for
running against the FCOS AARCH64 builder and
gangPlankFCOSAARCH64BuilderWrapper() with default setup and
invocation for executing gangplank against that builder.

Copy link
Contributor

@darkmuggle darkmuggle left a 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 :)

Copy link
Member

@ravanelli ravanelli left a 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 Show resolved Hide resolved
Comment on lines 140 to 148
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')
]) {
Copy link
Member

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.

Copy link
Member Author

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`
@dustymabe dustymabe force-pushed the dusty-gangplank-additions-pr branch from d4e055c to 5820f10 Compare July 28, 2021 15:27
@dustymabe
Copy link
Member Author

The pipeline specific bits have been moved to the pipeline. Updated list of things done here:

commit 5820f10399fa7edddd144547c0e94fc3415f2ccb
Author: Dusty Mabe <dusty@dustymabe.com>
Date:   Tue Jul 27 11:28:37 2021 -0400

    gangplank: additions to aid in FCOS AARCH64 building
    
    - 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`

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

Successfully merging this pull request may close these issues.

4 participants