Skip to content
This repository was archived by the owner on Jan 30, 2022. It is now read-only.
This repository was archived by the owner on Jan 30, 2022. It is now read-only.

Improve error output for oc not logged in #101

@DerekRoberts

Description

@DerekRoberts

This error comes up when not logged into oc. Check login and point that out.

[IRS-irs-war]$ nrdk build --archetype=java-web-app --pr=0
Starting @bcgov/nrdk/0.1.0-rc.115 linux-x64 node-v14.17.0
...
info: Applying default value for deploy-script {"category":"OnJiraIssue","timestamp":"2021-07-14T15:27:28.036Z"}
--archetype=java-web-app --pr=0 --config-script=.pipeline/lib/config.js --git.remote.name=origin --dev-mode=false --rfc-validation=true --git.url=https://bwa.nrs.gov.bc.ca/int/stash/scm/IRS/irs-war.git --git.remote.url=https://bwa.nrs.gov.bc.ca/int/stash/scm/IRS/irs-war.git --git.branch.name=feature/IRS-520 --git.branch.merge=feature/IRS-520 --git.change.target=feature/IRS-520 --build-script=/home/derek/Repos/nrdk/src/archetypes/java-web-app/build --deploy-script=/home/derek/Repos/nrdk/src/archetypes/java-web-app/deploy
    Error: command: oc --namespace=aa8805-tools get secret/bitbucket-account --output=json
    stderr:error: the server doesn't have a resource type "secret"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions