<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
- <refspec>$GERRIT_REFSPEC</refspec>
+ <refspec/>
<url>$GIT_URL/$PROJECT</url>
<credentialsId>test-credential</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
user=$(echo "$CREDENTIAL" | cut -f1 -d:)
pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
-echo "machine $machine login $user password $pass" > ~/.netrc
+echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>