Skip to content

updateOrderFile not working - WikiUpdaterTask #2178

@farhan23ds-hash

Description

@farhan23ds-hash

Azure DevOps Extensions

Artifact PR Description

Platform

Azure DevOps Services

Azure DevOps Server (TFS) Version

Version Dev20.M266.1 (AzureDevOps_M266_20260111.1)

Extension Version

Latest v3 version WikiUpdaterTask

Describe the bug

Hi this is my YAML, I'm not seeing update order file in the logs, it's a code repo wiki:

- task: WikiFolderUpdaterTask@3
  inputs:
    repo: repurl
    branch: wikibranch
    targetFolder: wikitargetfolder
    replaceFile: true
    updateOrderFile: true
    orderFilePath: orderfilepath
    prependEntryToOrderFile: true
    dataIsFile: true
    sourceFolder: '$(Build.ArtifactStagingDirectory)'
    gitname: '$(Build.RequestedFor)'
    gitemail: '$(Build.RequestedForEmail)'
    localpath: '$(System.DefaultWorkingDirectory)/output'
    UseAgentToken: true
  displayName: 'Upload File'

Repo Steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    ...

Expected Behavior

No response

Logging Information

`starting: Upload Release Notes to Wiki
==============================================================================
Task         : Git based WIKI Folder Updater from Black Marble
Description  : A tool to update or create a set of files in a folder in a Git‑based Wiki
Version      : 3.25.6
Author       : Richard Fennell
Help         : Version: 3.25.6. [More Information](https://github.com/rfennell/vNextBuild/wiki/Wiki-Updater-Task/)
==============================================================================
Variable: Repo [https://<org>@dev.azure.com/<org>/<project>/_git/<repo>]
Variable: TargetFolder [/wiki/Release-Notes/]
Variable: Commit Message [Add new release notes]
Variable: Git Username [<username>]
Variable: Git Email [<email>]
Variable: Use Agent Token [true]
Variable: Replace File [true]
Variable: Append to File [true]
Variable: Username [undefined]
Variable: Password [*****]
Variable: Localpath [/mnt/vss/_work/1/s/output]
Variable: SourceFolder [/mnt/vss/_work/1/a]
Variable: Filter [**/*.md]
Variable: Tag Repo [false]
Variable: Tag [undefined]
Variable: Branch [<wiki-branch>]
Variable: InjectExtraHeader [false]
Variable: SslBackend [undefined]
Variable: Retries [5]
Variable: Mode [Pull]

Using OAUTH Agent Token, overriding username and password
The provided repo URL is https://<org>@dev.azure.com/<org>/<project>/_git/<repo>
The protocol is https
Removing leading http:// or https:// block
Removing leading username@ block
Trimmed the URL to dev.azure.com/<org>/<project>/_git/<repo>
URL used https://buildagent:***@dev.azure.com/<org>/<project>/_git/<repo>

Cleaned /mnt/vss/_work/1/s/output
Cloned dev.azure.com/<org>/<project>/_git/<repo> to /mnt/vss/_work/1/s/output

Setting GitConfig Name:<username> Email:<email>
Set GIT values in /mnt/vss/_work/1/s/output

Checking out the requested branch <wiki-branch>
Git Pull, prior to local commits, in case of post‑clone updates

Checking for files using the filter /mnt/vss/_work/1/a/**/*.md
Found 1 files
Processing /mnt/vss/_work/1/a/Release-vX.Y.Z.md
Copying /mnt/vss/_work/1/a/Release-vX.Y.Z.md to /mnt/vss/_work/1/s/output/wiki/Release-Notes/Release-vX.Y.Z.md`

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions