Step share from CLI - Error - Failed to git clone

Getting the following error upon step share -

cloning Step repo from (https://github.com/sreevatsa-ramya/bitrise-step-perfecto-upload-app.git) with tag (0.0.1) to: /var/folders/20/8kvvf_pj3kg6lbfl5w_vn4nw0000gn/T/016157753
Failed to git-clone (url: https://github.com/sreevatsa-ramya/bitrise-step-perfecto-upload-app.git) version (0.0.1), error: exit status 128
FATA[14:57:35] Bitrise share create failed, error: exit status 1
| |
±–±--------------------------------------------------------------±---------+
| x | script (exit code: 1) | 17.91 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-script/issues |
| Source: https://github.com/bitrise-io/steps-script |
±–±--------------------------------------------------------------±---------+

Please help me with this.

Hi @sreevatsa,

Thank you for reaching out.

Can you please share a build link and enable support access in project settings?

Hi,

I just followed the steps to share step from CLI by running bitrise share step command. I have not created any app on the bitrise UI.

Pardon me but Please let me know what exactly i need to provide you.

Thanks,
Sree

Hi @sreevatsa,

My apologies, I misread your request.

What command are you specifically running?

Hi,

I just ran this command - “bitrise run share-this-step” and there is no need to apologize :).

This is the full log -

INFO[14:57:09] bitrise runs in Secret Filtering mode
INFO[14:57:09] Running workflows: audit-this-step --> share-this-step

Switching to workflow: audit-this-step

INFO[14:57:09] Step uses latest version – Updating StepLib …
±-----------------------------------------------------------------------------+
| (0) script |
±-----------------------------------------------------------------------------+
| id: script |
| version: 1.1.6 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2020-06-11T14:57:17+05:30 |
±-----------------------------------------------------------------------------+
| |

  • stepman audit --step-yml ./step.yml
    INFO[14:57:17] * [OK] Success audit (./step.yml)
    | |
    ±–±--------------------------------------------------------------±---------+
    | ✓ | script | 8.44 sec |
    ±–±--------------------------------------------------------------±---------+

Switching to workflow: share-this-step

±-----------------------------------------------------------------------------+
| (0) script |
±-----------------------------------------------------------------------------+
| id: script |
| version: 1.1.6 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2020-06-11T14:57:18+05:30 |
±-----------------------------------------------------------------------------+
| |

Preparing StepLib…
StepLib prepared at: /Users/sreevatsa/.stepman/step_collections/1591867639/collection

Next, call $ bitrise share create --tag [step-version-tag] --git [step-git-uri].git --stepid [step-id],
to add your Step to your forked StepLib repository (locally).

Important: you have to add the (version) tag to your Step’s repository.

Validating the Step…
cloning Step repo from (https://github.com/sreevatsa-ramya/bitrise-step-perfecto-upload-app.git) with tag (0.0.1) to: /var/folders/20/8kvvf_pj3kg6lbfl5w_vn4nw0000gn/T/016157753
Failed to git-clone (url: https://github.com/sreevatsa-ramya/bitrise-step-perfecto-upload-app.git) version (0.0.1), error: exit status 128
FATA[14:57:35] Bitrise share create failed, error: exit status 1
| |
±–±--------------------------------------------------------------±---------+
| x | script (exit code: 1) | 17.91 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-script/issues |
| Source: https://github.com/bitrise-io/steps-script |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | script | 8.44 sec |
±–±--------------------------------------------------------------±---------+
| x | script (exit code: 1) | 17.91 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-script/issues |
| Source: https://github.com/bitrise-io/steps-script |
±–±--------------------------------------------------------------±---------+
| Total runtime: 26.35 sec |
±-----------------------------------------------------------------------------+

Submitting anonymized usage informations…
For more information visit:

Best Regards,
Sree

Hi @sreevatsa,

You must create a GitHub release with the tag 0.0.1 on your step repo so that it can pull it down and generate the necessary files to push to your forked steplib repo.

Hi,

Thanks. I did create a Github release and ran it. Now the error reads below -

  • bitrise share start -c git@github.com:PerfectoCode/bitrise-steplib
    Validating Step share params…
    all inputs are valid

Preparing StepLib…
Failed to setup step spec (url: git@github.com:PerfectoCode/bitrise-steplib) version (/Users/sreevatsa/.stepman/step_collections/1591892648/collection), error: exit status 128
FATA[21:54:18] Bitrise share start failed, error: exit status 1
| |
±–±--------------------------------------------------------------±---------+
| x | script (exit code: 1) | 11.14 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-script/issues |
| Source: https://github.com/bitrise-io/steps-script |
±–±--------------------------------------------------------------±---------+

Please help me.

My project is here - https://github.com/PerfectoCode/Bitrise_Perfecto_FileUpload

Best Regards,
Sree

Hi @sreevatsa,

It needs to be an HTTP url for cloning the repository. I don’t believe it’s supported to use SSH here. So you will need to authenticate with HTTPS and then run the script again.

Hi,

Thanks a lot for your support. I am able to publish the step now.

Best Regards,
Sree

Awesome, great to hear!

We’re here to help if you need anything else.