Artifacts not found

jeffrey.scott.flesher's Avatar

jeffrey.scott.flesher

17 Apr, 2020 07:21 PM

Update: The last path you are in must be root, my bad.

I have 3 artifacts to upload, but it only finds 1.

artifacts:
  - path: '*.zip'
    name: 'ZipFiles'
  - path: '*.exe'
    name: 'ExecutableFiles'

deploy:
  - provider: GitHub
    release: continuous
    artifact: 'ZipFiles'
    draft: false
    prerelease: true
    auth_token:
      secure: xxx
  - provider: GitHub
    release: continuous
    artifact: 'ExecutableFiles'
    draft: false
    prerelease: true
    auth_token:
      secure: xxx

dir
Galaxy-Calculator-Installer.exe
Galaxy-Calculator-Installer.zip
Galaxy-Calculator-release.zip

Want to upload the two zip files and the exe
It only finds one zip file
Found artifact 'Galaxy-Calculator-release.zip' matching '*.zip' path
and does not find the zip or exe for this file
No artifacts found matching '*.exe'

Full source is here: https://github.com/Light-Wizzard/galaxy-calculator

Update, I did not have a profile when I filed this, so I did not know it had an edit button, till after I made one, and why I added two more to update it, but I do not see a delete button, or I would delete them and update this.

Thanks for any help

  1. 1 Posted by jeffrey.scott.f... on 17 Apr, 2020 09:20 PM

    jeffrey.scott.flesher's Avatar

    Update: I also tried this:

      - path: /.\*.zip/
        name: 'ZipFiles'
      - path: /.\*.exe/
        name: 'ExecutableFiles'

    Found artifact 'Galaxy-Calculator-release.zip' matching '*.zip' path
    No artifacts found matching '*.exe' path

    Note as before, it only finds one of the zip files, and does not find the exe.

    Thanks

  2. 2 Posted by jeffrey.scott.f... on 17 Apr, 2020 10:19 PM

    jeffrey.scott.flesher's Avatar

    Update:

    Here I try to set the relative name for each artifact:

    artifacts:
      - path: '%BIN%-%CONFIGURATION%.zip'
        name: 'Zip-%CONFIGURATION%'
      - path: '%BIN%-Installer.zip'
        name: 'ZipInstaller'
      - path: '%BIN%-Installer.exe'
        name: 'ExecutableFile'

    dir
    Directory of C:\projects\galaxy-calculator-build
    04/17/2020 10:08 PM 54,497,283 Galaxy-Calculator-Installer.exe
    04/17/2020 10:08 PM 44,086,077 Galaxy-Calculator-Installer.zip
    04/17/2020 10:07 PM 46,087,092 Galaxy-Calculator-release.zip
    Collecting artifacts...
    Found artifact 'Galaxy-Calculator-release.zip' matching 'Galaxy-Calculator-release.zip' path
    No artifacts found matching 'Galaxy-Calculator-Installer.zip' path
    No artifacts found matching 'Galaxy-Calculator-Installer.exe' path
    Uploading artifacts...

    Even if I hard code it:

      - path: 'Galaxy-Calculator-Installer.zip'
        name: 'ZipInstaller'

    Same results again, it only finds the release zip, and I have no idea what makes it more special then the other file, all of them show up in the dir, so I am at a lost.

    Thanks

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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