Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Artifacts arent pulled correctly releasedefinition:generate #1140

Closed

Description

@Schuchie

Describe the bug
Since the latest update, our generated release definitions files are not containing any artifacts.

To Reproduce
GitHub CI and then execute in a workflow the following command:
sfdx sfpowerscripts:releasedefinition:generate
We are using the following github Action for checking out the repository:

    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Authenticate to STAGE sandbox
        run: |
          echo "${{ secrets.STAGE_SFDX_AUTH_URL }}" > ./stage_authfile
          sfdx auth:sfdxurl:store -f ./stage_authfile -a stage
          rm stage_authfile

      - name: Create release definition file of current stage
        run: |
          node .github/scripts/fix-release.js
          sfdx sfpowerscripts:releasedefinition:generate -n "$RELEASE_NAME" -b "$RELEASE_NAME" -d ./release-definitions -f ./release-definitions/release-config.yml -c origin/main

Expected behavior
Release definition file with gets generated inclusive the used artifacts.

Screenshots
Looks like a perm issue with the folder:

-------------------------------------------------------------------------------------------
sfpowerscripts  -- The DX@Scale CI/CD Orchestrator -Version:19.7.3 -Release:September 22
-------------------------------------------------------------------------------------------
Processing Artifacts from reference.. origin/main
Copying the repository to /tmp/tmp-156-tecsVJBlKw7Y
Successfully created temporary repository at /tmp/tmp-156-tecsVJBlKw7Y with commit HEAD
Unable to capture version of szgroup-env-specific-pre due to Error: Command failed: git show-ref --tags -d | grep "szgroup-env-specific-pre_v*"
fatal: detected dubious ownership in repository at '/__w/Project/Project'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/Project/Project

Unable to capture version of szgroup-env-specific-alias-pre due to Error: Failed to find latest tag for szgroup-env-specific-alias-pre
Unable to capture version of szgroup-core due to Error: Command failed: git show-ref --tags -d | grep "szgroup-core_v*"
fatal: detected dubious ownership in repository at '/__w/Project/Project'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/Project/Project

Unable to capture version of szgroup-access-management due to Error: Command failed: git show-ref --tags -d | grep "szgroup-access-management_v*"
fatal: detected dubious ownership in repository at '/__w/Project/Project'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/Project/Project

Unable to capture version of szgroup-ui due to Error: Command failed: git show-ref --tags -d | grep "szgroup-ui_v*"
fatal: detected dubious ownership in repository at '/__w/Project/Project'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/Project/Project

Unable to capture version of szgroup-env-specific-alias-post due to Error: Failed to find latest tag for szgroup-env-specific-alias-post
Unable to capture version of szgroup-temp due to Error: Failed to find latest tag for szgroup-temp
------------Generated Release Definition for release-1.51----------------

Platform Details (please complete the following information):

  • OS: sfpowerscripts -- The DX@Scale CI/CD Orchestrator -Version:19.7.3
  • Salesforce CLI(sfdx cli) Version: Warning: sfdx-cli update available from 7.165.0 to 7.169.1.
  • CI Platform: GitHub Action

Additional context
Add any other context about the problem here.

Activity

  1. added
    analysis
    on Oct 21, 2022
  2. azlam-abdulsalam commented on Oct 22, 2022

    @azlam-abdulsalam
    Contributor

    @Schuchie can you add a git fetch --all before calling this command and let me know. I understand this issue and I had added a workaround in the last release, but it seems not working in this instance

    public async getRemoteOriginUrl(overrideOriginURL?: string): Promise<string> {

  3. adrianioana commented on Oct 31, 2022

    @adrianioana

    @azlam-abdulsalam @Schuchie I am facing the same issue. Added git fetch --all command before executing the sfpowerscripts command but the outcome is the same.

    fatal: detected dubious ownership in repository at '/__w/Project/Project'
    To add an exception for this directory, call:

    git config --global --add safe.directory /__w/Project/Project
    
  4. azlam-abdulsalam commented on Nov 23, 2022

    @azlam-abdulsalam
    Contributor

    This has been identified as an issue, and is being fixed in the November release. It happens only on GitHub runners afaik

  5. added
    bug
    and removed
    analysis
    on Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions