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 · 0 comments
Open

Error when using apiProviderUpload #5049

githuboayt opened this issue Sep 17, 2024 · 0 comments

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
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

No branches or pull requests

1 participant