Skip to content

Cannot read property 'replace' of undefined #967

Answered by rfennell
lucasssfigueredo asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is you have not passed in the source name of the file generated by the previous task, or set the isdata parameter. I know the parameters can be confusing as their are input and output file name

You need something like this, I have only show the 3 key parameters

        - task: WikiUpdaterTask@1
          displayName: 'Update Project Wiki with release notes'
          inputs:
           ...       
            filename: 'Builds/ReleaseNotes_25.md'   < this is the folder and/or the filename in the target WIKI
            sourceFile: 'ReleaseNotes_25.md'        < this is the path to the file generated by the other task
            dataIsFile: True                        < this is im…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lucasssfigueredo
Comment options

Answer selected by lucasssfigueredo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants