Problem when deploying an add-on on FTP as a collaborator

abdelkrim.bensaid's Avatar

abdelkrim.bensaid

24 May, 2019 10:37 AM

Hello,

I'm collaborating on a public repo on GitHub.

The owner of this repo doesn't have an appveyor account.

I want to deploy an add-on built with appveyor on FTP.

If I fork the repo and push a tag to the forked repo, the deployment is made and the add-on is uploaded to the FTP.

However, if I push the tag on the original repo, nothing happens.

Would there be anything to add or should I have special permission?

Thanks in advance for your help.

Here is my appveyor.yml file:

version: '{branch}-{build}'
environment:
  PY_PYTHON: 3.7-32
install:
- cmd: >-
    set PATH=C:\Python37;C:\Python37\Scripts;%PATH%

    python -m pip install -U pip

    pip install wheel
    
    pip install scons

    pip install markdown
build_script:
- cmd: scons

artifacts:
- path: '*.nvda-addon'
  name: addon
  type: WebDeployPackage

deploy:
  provider: FTP
  protocol: ftp
  host:
    secure: encrypted host
  username:
    secure: encrypted username
  password:
    secure: encrypted password
  folder: /nvda-addons
  artifact: addon
  on:
    appveyor_repo_tag: true

Kind regards.

  1. Support Staff 1 Posted by Owen McDonnell on 24 May, 2019 03:32 PM

    Owen McDonnell's Avatar

    Builds are not meant to be triggered on upstream repositories.

    Or are you saying you have two AppVeyor projects, one for your fork and one for upstream?

  2. 2 Posted by abdelkrim.bensa... on 24 May, 2019 03:40 PM

    abdelkrim.bensaid's Avatar

    Hello Owen,

    Thank you for your quick reply.

    In fact, yes, I have 2 appveyor projects, one for my fork and one for the base GitHub repo in which I am a collaborator.

    Kind regards.

  3. Support Staff 3 Posted by Owen McDonnell on 24 May, 2019 03:50 PM

    Owen McDonnell's Avatar

    Can you point to the latest build in each of them.

  4. 4 Posted by abdelkrim.bensa... on 24 May, 2019 04:35 PM

    abdelkrim.bensaid's Avatar

    Hello Owen,

    Here is the build of the original repo in which I am a collaborator:

    https://ci.appveyor.com/project/abdel792/weather-plus-ja1vl

    Here is the build of the forked repo:

    https://ci.appveyor.com/project/abdel792/weather-plus

    The appveyor.yml file is at the root of each GitHub repos.

    Thanks again for your help.

    Kind regards.

  5. Support Staff 5 Posted by Owen McDonnell on 24 May, 2019 06:22 PM

    Owen McDonnell's Avatar

    There are no builds in the first project. Has any push to the repo triggered a build? Can you try to manually start one.

  6. 6 Posted by abdelkrim.bensa... on 24 May, 2019 06:36 PM

    abdelkrim.bensaid's Avatar

    Hello Owen,

    Exactly, that's the problem, I can not build or deploy on the original repo using "git push origin tagName", while it works well on the forked one.

    Of course, I can build using the new build button in appveyor, but the add-on is not deployed, because the tag is missing in this case.

    I prefer to use "git push origin tagName".

    Would that be possible?

    Thanks again for your help.

    Kind regards.

  7. Support Staff 7 Posted by Owen McDonnell on 24 May, 2019 11:46 PM

    Owen McDonnell's Avatar

    I'm not sure if I understand.
    Lets forget about tags for a moment... if you make a trivial push to the zstanecic/weather_plus repo, a build is not triggered, correct? Though I believe you can, how do you know, since there has been no builds on that project?

  8. 8 Posted by abdelkrim.bensa... on 25 May, 2019 12:12 AM

    abdelkrim.bensaid's Avatar

    Hello Owen,

    I tried to run "git push origin tagName" on "zstanecic/weather_plus" project and nothing has not happened even a build.

    While when I did it on "abdel792/weather_plus" project, it builds and deploys correctly.

    I prefer to use "git push remoteName tagName" rather than build using "New build" on the appveyor project.

    If I use "New build" on the project "zstanecic / weather_plus", I get the build, but not the deploiment.

    I hope I was clear enough.

    Thanks for your help.

    Kind regards.

  9. 9 Posted by abdelkrim.bensa... on 25 May, 2019 11:03 AM

    abdelkrim.bensaid's Avatar

    Hi Owen,

    Here's the result when I click on "New Build" in the appveyor page of the project "zstanecic/weather_plu":

    https://ci.appveyor.com/project/abdel792/weather-plus-ja1vl

    Thanks.

    Kind regards.

  10. Support Staff 10 Posted by Owen McDonnell on 25 May, 2019 06:29 PM

    Owen McDonnell's Avatar

    You will need to ask the owner of that repository to go to Settings->webhooks in GitHub and add the webhook that you can get from the Settngs->General tab of your AppVeyor project.

  11. 11 Posted by abdelkrim.bensa... on 26 May, 2019 03:57 PM

    abdelkrim.bensaid's Avatar

    Thanks Owen,

    It's very clear.

    Thank you again, I will contact the owner and give him the Webhook URL of the Appveyor project.

    Kind regards.

  12. abdelkrim.bensaid closed this discussion on 26 May, 2019 03:58 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

21 Aug, 2019 05:44 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM