我正在尝试在 GitLab 上运行一项 CICD 作业,在执行此作业时出现此错误。
它清楚地表明它无法读取密码,但我不确定它是从哪里读取密码的?我的意思是在哪里配置这个密码?
我已经在 CICD 令牌部分的这个项目上为我添加了 PROJECT_ACCESS_TOKEN,但我仍然收到此错误:
[main] ERROR org.apache.maven.cli.MavenCli - Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project demo-project: Unable to commit files
[main] ERROR org.apache.maven.cli.MavenCli - Provider message:
[main] ERROR org.apache.maven.cli.MavenCli - The git-push command failed.
[main] ERROR org.apache.maven.cli.MavenCli - Command output:
[main] ERROR org.apache.maven.cli.MavenCli - fatal: could not read Password for 'https://[email protected]': No such device or address
Login to git lab and select your project.
Go to setting option for project.
Click on Access Token section.
Click on Add new token button.
Fill all information and select scope.
Click on create project access token.
Copy name and value of this project access token and paste on notepad.
Now again go to setting option for project.
This time click on CI/CD
Click on Varibales pane and expand it
Click on add varibale button, A form will popup
Fill description, name and value of project access token from notepad
click on add variable button.
Now project access token ready for CI/CD pipline job.
Now run your CICD job again.
It solve the issue.