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

Error when using apiProviderUpload #5049

Open
githuboayt opened this issue Sep 17, 2024 · 1 comment
Open

Error when using apiProviderUpload #5049

githuboayt opened this issue Sep 17, 2024 · 1 comment
Labels
stale marks stale issues and pull requests

Comments

@githuboayt
Copy link

Hello,

I am trying to test Api management library steps. When I am trying to run apiProviderUpload I get the error below.

+ ./piper apiProviderUpload time="2024-09-16T15:37:36Z" level=info msg="Version ca56fcf962d5fcba30186e9b86073d703748a041" library=SAP/jenkins-library Error: unknown command "apiProviderUpload" for "piper" Run 'piper --help' for usage. time="2024-09-16T15:37:36Z" level=fatal msg="configuration error" error="unknown command \"apiProviderUpload\" for \"piper\"" library=SAP/jenkins-library.

I am using Custom Jenkins Setup as defined in documentation. I use it in pipeline script as below.

@Library('piper-lib-os') _

stage("Upload Api Provider") {
    script {
        apiProviderUpload(
            script: this,
            filePath: providerFilePath,
            apimApiServiceKeyCredentialsId: prvUlCfg.apimApiServiceKeyCredentialsId,
            verbose: true
        );
        
        print "Upload step is done";
    }
}

I tried to go to Jenkins workspace and run ./piper --help from console. And below is the output I get.
image
It looks like apiProviderUpload is missing.

Also output of apiProviderUpload as argument is below.

$ ./piper apiProviderUpload
INFO[0001] Version ca56fcf962d5fcba30186e9b86073d703748a041  library=SAP/jenkins-library
Error: unknown command "apiProviderUpload" for "piper"
Run 'piper --help' for usage.
FATA[0001] configuration error
error="unknown command \"apiProviderUpload\" for \"piper\"" library=SAP/jenkins-library
Copy link
Contributor

Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

@github-actions github-actions bot added the stale marks stale issues and pull requests label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale marks stale issues and pull requests
Projects
None yet
Development

No branches or pull requests

1 participant