Giter Club home page Giter Club logo

Comments (5)

fpaterour avatar fpaterour commented on August 29, 2024

Hi,

I added email report extension recently but I'm getting "File not found: '/home/vsts/work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/Index.js'" error.
Can you please help me here. Also, can you please let me know if I can attach any file with email notification with the same extensions.
I'm getting default notification when my job gets failed/success so; do I need to setup smtp also to use this email extensions.

Hi,

I had the same error using a job running on an ubuntu-20.04 agent. It worked when using a windows-2019 agent.

I figured out that the task was searching for a file named Index.js and that one named index.js was present in the directory.
This is probably due to how windows and linux deal with case. Windows is case insensitive when it comes to file names whereas linux is case sensitive so on linux the task couldn't find the correct file.

from azure-devops-engineering-extensions.

Mithras avatar Mithras commented on August 29, 2024

I'm having the same issue. Using windows agent is not an option for me.

from azure-devops-engineering-extensions.

Mithras avatar Mithras commented on August 29, 2024

Dirty workaround I came up with:
Just add this Bash task before EmailReport task

  - bash: |
      cd /mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8
      cp ./index.js ./Index.js
      sed -i -e "s~\\\\\\\\~/~" ./htmlreport/HTMLReportCreator.js
      sed -i -e "s~\\\\\\\\~/~" ./model/helpers/LinkHelper.js
    displayName: EmailReport fix
    continueOnError: true

(you might need to fix cd <path> to match your EmailReport version)

from azure-devops-engineering-extensions.

calrom-jtejero avatar calrom-jtejero commented on August 29, 2024

hi @Mithras seems you and me found and solved the same issue with the file.

my PR is here #51 but seems the repo owners are not reviewing this repo for a long time.

from azure-devops-engineering-extensions.

calrom-jtejero avatar calrom-jtejero commented on August 29, 2024

cannot be bothered to wait for Microsoft to fix this one, I am using now my own extension:
https://marketplace.visualstudio.com/items?itemName=calrom-jtejero.CalromEmailReportExtension

the code is in my fork:
https://github.com/calrom-jtejero/azure-devops-engineering-extensions

from azure-devops-engineering-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.