0

In my yaml pipeline i want to run maven release. I get this error:

[ERROR] Cloning into 'checkout'...
[ERROR] fatal: could not read Password for 'https:********@dev.azure.com': terminal prompts disabled

Answers suggested here seem not to help. This is the pipeline (see checkout and script):

parameters:
- name: releaseVersion
  displayName: release releaseVersion
  type: string
  default: "changeme"
- name: tagName
  displayName: tag name
  type: string
  default: "changeme"
- name: nextVersion
  displayName: next version
  type: string
  default: "changeme"

trigger: none


steps:
- checkout: self
  persistCredentials: true
  clean: true
  fetchDepth: 0
- script: |
    git config user.email "release-pipeline@example.com"
    git config user.name "release-pipleine"
    git fetch --all
    git checkout master 
- task: MavenAuthenticate@0
  inputs:
    artifactsFeeds: 'Artifacts'
- task: Maven@4
  inputs:
    mavenPomFile: 'pom.xml'
    mavenOptions: '-Xmx3072m'
    javaHomeOption: 'JDKVersion'
    jdkVersionOption: '1.17'
    jdkArchitectureOption: 'x64'
    publishJUnitResults: true
    testResultsFiles: '**/surefire-reports/TEST-*.xml'
    goals: 'release:clean release:prepare release:perform'
    options: >-  
      --batch-mode
      -DreleaseVersion=${{ parameters.releaseVersion }}
      -DtagName=${{ parameters.tagName }} 
      -DnextVersion=${{ parameters.nextVersion }}
      -Darguments="-Dmaven.deploy.skip=true"

Build service has this permissions set

enter image description here

So how to make this work?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
dermoritz
  • 12,519
  • 25
  • 97
  • 185

0 Answers0