ServiceNow / sncicd-publish-app

MIT License
8 stars 7 forks source link

Unable to publish application from a dev instance to a test instance #64

Open gpetruzza opened 1 year ago

gpetruzza commented 1 year ago

Hello, I'm using a sample pipeline with a basic publish job in my github pipeline. I have the following configuration:

  1. One ServiceNow dev instance with Source Control enabled, in which I created my hello world application;
  2. another ServiceNow test instance WITHOUT Source Control enabled, in which my pipeline should be able to deploy the application I created in the dev instance;
  3. a public github repository that can be reached and can reach both ServiceNow instances with all the secrets and all the accounts correctly configured for each instance;
  4. a dedicated user for the pipeline with admin permission on the test instance.

I'm using the ServiceNow/sncicd-publish-app@2.0.1 to deploy my application to test instance. This is the stage:

    - name: Publish to Store
      id: sncicd-publish-app
      uses: ServiceNow/sncicd-publish-app@2.0.1
      with:
        versionFormat: detect
        version: "1.0.0"
        versionTemplate: "1.0"
        devNotes: "deploy-to-production-test"
        isAppCustomization: false
        incrementBy: "1"
      env:
        nowUsername: ${{ secrets.NOW_USERNAME }}
        nowPassword: ${{ secrets.NOW_PASSWORD }}
        nowSourceInstance: ${{ secrets.NOW_TEST_INSTANCE}}
        appSysID: ${{ secrets.APP_SYS_ID }}
        appScope: ${{ secrets.APP_SCOPE }}

and this is the returning error:

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
##[debug]steps.sncicd-publish-app.outputs.rollbackVersion='1.0.0'
::set-output name=newVersion::1.0.1
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
##[debug]steps.sncicd-publish-app.outputs.newVersion='1.0.1'
Pending
Running: 3%
Error: Unable to upload application

I've already enabled all the debugging messages but the returning error is not clear. I've already checked the secrets and they are used correctly.