#148 Build Service is not working as expected

open
Ingo
None
2022-04-17
2021-11-07
hermsen
No

Hi,

Today I tried the new 'build service'. My repo is located at my home directory: https://forge.codesys.com/git/u,hermsen,cicd.git/
I placed a library which is built according to all hints on CI/CD and place a .drone.yaml in the same root;

The log message tells me the following

empty*** clone https://forge.codesys.com/git/u,hermsen,cicd.git/ to /working/repo
Already up to date.
rm: cannot remove '/working/repo/.drone-artifacts/trunk/package.manifest': Permission denied
rm: cannot remove '/working/repo/.drone-artifacts/trunk/d-logg.package': Permission denied
rm: cannot remove '/working/repo/.drone-artifacts/trunk.package': Permission denied
rm: cannot remove '/working/repo/.drone-artifacts/.drone-artifacts/trunk.package': Permission denied
fatal: destination path '/working/repo' already exists and is not an empty directory.
chmod: changing permissions of '/working/repo/.drone-artifacts': Operation not permitted
chmod: changing permissions of '/working/repo/.drone-artifacts/trunk': Operation not permitted
chmod: changing permissions of '/working/repo/.drone-artifacts/trunk/package.manifest': Operation not permitted
chmod: changing permissions of '/working/repo/.drone-artifacts/trunk/d-logg.package': Operation not permitted
chmod: changing permissions of '/working/repo/.drone-artifacts/trunk.package': Operation not permitted
chmod: changing permissions of '/working/repo/.drone-artifacts/.drone-artifacts': Operation not permitted
chmod: changing permissions of '/working/repo/.drone-artifacts/.drone-artifacts/trunk.package': Operation not permitted
2021/11/07 18:02:00 open .drone.yml: no such file or directory
Error Code: 1

Can you please help me get the CI/CD sorted once and for all? It just doesn't work as advertised :-(

With kind regards

Discussion

  • Ingo

    Ingo - 2021-11-09
    • assigned_to: CODESYS Forge --> Ingo
     
  • Ingo

    Ingo - 2021-11-09

    Please retry it.
    The issue should be solved.

     
  • hermsen

    hermsen - 2021-11-10

    Hi,

    After your update I got

    empty*** clone https://forge.codesys.com/git/u,hermsen,cicd.git/ to /working/repo
    Already up to date.
    [compile:0] + codesys runtest
    [compile:1] 
    [compile:2] 
    [compile:3] *** Test: .\coUnit12_verifier_sp16p6.library
    [compile:4] Error: compile error
    [compile:5] Error C510: The configured compilerversion '3.5.16.40' is not available in your installation
    [compile:6] 0 artifact(s) created
    [compile:7] cp: cannot stat 'c:coUnit_xunit_testresults.xml': No such file or directory
    Cloning into '/working/repo'...
    2021/11/10 08:14:19 compile : exit code 1
    Error Code: 1
    

    1) What CODESYS compilerversion(s) runs in the VM?
    2) The reporting file is originally located at 'c:\coUnit_xunit_testresults.xml' when the test has ran (which here it didn't), however I'd like to copy this artefact over to the artfacts directory. Could you check if I configured this okay?

     
  • hermsen

    hermsen - 2021-11-25

    URL:
    https://forge.codesys.com/git/lib,cobolt,binaries.git/

    .drone.yml contents:

    kind: pipeline
    name: default
    workspace:
      base: /working/repo
    steps:
      - name: compile
        image: codesys-ide:local
        commands:
          - codesys export-libdoc
          - codesys gen-package-manifest
          - codesys build-package
    

    Result

    empty*** clone https://forge.codesys.com/git/lib,cobolt,binaries.git/ to /working/repo
    Already up to date.
    rm: cannot remove '/working/repo/.drone-artifacts/C:': Permission denied
    rm: cannot remove '/working/repo/.drone-artifacts/trunk/cfunit-example.app': Permission denied
    fatal: destination path '/working/repo' already exists and is not an empty directory.
    chmod: changing permissions of '/working/repo/.drone-artifacts': Operation not permitted
    chmod: changing permissions of '/working/repo/.drone-artifacts/C:': Operation not permitted
    chmod: changing permissions of '/working/repo/.drone-artifacts/trunk': Operation not permitted
    chmod: changing permissions of '/working/repo/.drone-artifacts/trunk/cfunit-example.app': Operation not permitted
    2021/11/25 19:19:01 open .drone.yml: no such file or directory
    Error Code: 1
    

    Please fix

     
  • hermsen

    hermsen - 2022-01-09

    Note to self: I should verify this soon

     
  • hermsen

    hermsen - 2022-04-17

    BUMP! When can we finally expect a version which runs and works ?

     
    👍
    1

Log in to post a comment.