diff --git a/src/main/java/com/atlassian/bitbucket/jenkins/internal/scm/BitbucketSCMSource.java b/src/main/java/com/atlassian/bitbucket/jenkins/internal/scm/BitbucketSCMSource.java index 9f43c14d..8eb85f25 100644 --- a/src/main/java/com/atlassian/bitbucket/jenkins/internal/scm/BitbucketSCMSource.java +++ b/src/main/java/com/atlassian/bitbucket/jenkins/internal/scm/BitbucketSCMSource.java @@ -1,5 +1,6 @@ package com.atlassian.bitbucket.jenkins.internal.scm; +import com.atlassian.bitbucket.jenkins.internal.annotations.UpgradeHandled; import com.atlassian.bitbucket.jenkins.internal.client.BitbucketClientFactoryProvider; import com.atlassian.bitbucket.jenkins.internal.client.exception.BitbucketClientException; import com.atlassian.bitbucket.jenkins.internal.config.BitbucketPluginConfiguration; @@ -71,6 +72,7 @@ public class BitbucketSCMSource extends SCMSource { private static final Logger LOGGER = Logger.getLogger(BitbucketSCMSource.class.getName()); private static final String REFSPEC_DEFAULT = "+refs/heads/*:refs/remotes/@{remote}/*"; + @UpgradeHandled(handledBy = "Uses the same remote variable as REFSPEC_DEFAULT", removeAnnotationInVersion = "4.1") private static final String REFSPEC_TAGS = "+refs/tags/*:refs/remotes/@{remote}/*"; private String cloneUrl;