#66 where are my artefacts?

closed
nobody
None
2020-02-08
2019-09-13
aliazzz
No

Dear support,

I have followed the steps from the CI/CD tutorial and made a .drone-artifacts directory.
My .yml file contains the following code:

kind: pipeline
name: default
workspace:
  base: /working/repo
steps:
  - name: compile
    image: codesys-ide:local
    commands:
      - codesys compile-library
      - codesys gen-package-manifest
      - codesys build-package
      - cp *.library .drone-artifacts/
      - cp *.compiled-library .drone-artifacts/
      - cp *.package .drone-artifacts/
      - cp *.html .drone-artifacts/html/

However, my drone artifacts directory is still empty after running the drone build.

With kind regards,

Aliazzz

Discussion

  • aliazzz

    aliazzz - 2019-09-13

    I am trying to do the batch again an looking at the log via tail
    "https://forge.codesys.com/download/prj,cfunit,code/build-log.txt"

     

    Last edit: aliazzz 2019-09-13
  • Ingo

    Ingo - 2019-09-13

    Maybe it's a misunderstanding. The artifacts are not committed to your repository, but placed in a shared folder (see screenshot).

    The artifacts are by purpose accessible through a link, which you can use directly as a download link. Like this:

    https://forge.codesys.com/download/tol,cforge,code/...

     
  • aliazzz

    aliazzz - 2019-09-14

    It seems... :-(

    My explanation is that I took the directions from the CI/CD page litteral. Could you please look into the directions so that these misunderstandings could be avoided?

     
  • aliazzz

    aliazzz - 2019-09-14

    How can I add, delete or modify artifacts from this implicit folder?

     
  • Ingo

    Ingo - 2019-09-15

    You can do so, using your build-scripts, or by placing specific "cp", "mv" or "rm" commands in your .drone.yml
    When you use the default "codesys" build scripts, you don't need to care about the artifacts, as those commands are copying them already on their own.

    If you want to have a look into the scripts:
    https://forge.codesys.com/tol/codesys-4-linux/docker/ci/master/tree/codesys-ide/scripts/

     
    • aliazzz

      aliazzz - 2019-09-16

      Nice scripts!

      Easy to read/extend!
      Good work!

       
  • aliazzz

    aliazzz - 2019-09-16

    This thread can be closed

     
  • Ingo

    Ingo - 2019-09-16
    • status: open --> closed
    • Milestone: 1.0 -->
     

Log in to post a comment.