I've set up repository type GitLab that my account has RO access, therefore tagging it is not possible. I've cleared field "Commit Status Name/Context" so repository will not be tagged, according to field description.
When saved setting, field is filled up automatically with '${build.version}' value. Cloning repository causes 401 Unauthorized error returned by GitLab server.
Description
I've set up repository type GitLab that my account has RO access, therefore tagging it is not possible. I've cleared field "Commit Status Name/Context" so repository will not be tagged, according to field description.
When saved setting, field is filled up automatically with '${build.version}' value. Cloning repository causes 401 Unauthorized error returned by GitLab server.
Robert Saladra[22/Dec/20 03:37 PM]
I am sure, field is not filled when accessing configuration xml, but still has value filled checking via webpage and when trying to edit.
XML section for example repo:
<entry>
<string>test</string>
<com.pmease.quickbuild.plugin.scm.gitlab.GitLabRepository revision="0.4.0.4.1">
<name>test</name>
<inheritable>true</inheritable>
<quietPeriod>0</quietPeriod>
<userMapping class="com.pmease.quickbuild.setting.repository.usermapping.SameNameMapping"/>
<fetchUrl>https://gitlab.com/test.git</fetchUrl>
<userSchema>Author Name</userSchema>
<enableSubmodule>false</enableSubmodule>
<retrySetting>
<retryOnPatterns>fatal:.*Please try again</retryOnPatterns>
<retryTimes>3</retryTimes>
</retrySetting>
<depth>0</depth>
<gcPeriod>0</gcPeriod>
</com.pmease.quickbuild.plugin.scm.gitlab.GitLabRepository>
</entry>
Same story when trying to fill this field with spaces. I was able to set value '${""}', I'll check if this is interpreted as 'empty'
Steve Luo[22/Dec/20 02:44 PM]
I can clear the field "Commit Status Name/Context" successfully. Is it possible you haven't clear the field due to the browser autocompletion feature?
XML section for example repo:
<entry>
<string>test</string>
<com.pmease.quickbuild.plugin.scm.gitlab.GitLabRepository revision="0.4.0.4.1">
<name>test</name>
<inheritable>true</inheritable>
<quietPeriod>0</quietPeriod>
<userMapping class="com.pmease.quickbuild.setting.repository.usermapping.SameNameMapping"/>
<fetchUrl>https://gitlab.com/test.git</fetchUrl>
<userSchema>Author Name</userSchema>
<enableSubmodule>false</enableSubmodule>
<retrySetting>
<retryOnPatterns>fatal:.*Please try again</retryOnPatterns>
<retryTimes>3</retryTimes>
</retrySetting>
<depth>0</depth>
<gcPeriod>0</gcPeriod>
</com.pmease.quickbuild.plugin.scm.gitlab.GitLabRepository>
</entry>
Same story when trying to fill this field with spaces. I was able to set value '${""}', I'll check if this is interpreted as 'empty'