Comments (5)
The checkout and persist credentials is a step, not job configuration, and you need to declare env: on task
steps:
- checkout: self
persistCredentials: true
- task: GitflowBranchGate@1
displayName: 'Gitflow Branch Gate'
inputs:
hotfixBranchLimit: 5
hotfixBranchDaysLimit: 30
releaseBranchLimit: 5
releaseBranchDaysLimit: 365
featureBranchLimit: 10
featureBranchDaysLimit: 90
hotfixBranchesMustNotHavePendingPullRequests: false
releaseBranchesMustNotHavePendingPullRequests: false
releaseMustNotBeBehindMaster: false
mustNotHaveHotfixAndReleaseBranches: false
featureBranchesMustNotBeBehindMaster: false
CurrentFeatureMustNotBeBehindMaster: false
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
from vststasks.
We have a winner - thanks @julioarruda and @kerwinc for your support! :)
from vststasks.
This task work on yaml if you put this:
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
And this step:
- checkout: self
persistCredentials: true
from vststasks.
@MooVC as @julioarruda mentioned, you need to allow the task to use the System.AccessToken. Has the above solution worked for you?
from vststasks.
@MooVC as @julioarruda mentioned, you need to allow the task to use the System.AccessToken. Has the above solution worked for you?
Thanks for coming back on this one @kerwinc. I'm probably missing something here but when I did as suggested I get the following:
##[error]Could not find remote branch: refs/heads/master
-
job: Integration
timeoutInMinutes: 10
pool:
vmImage: windows-latest
workspace:
clean: all
checkout: self
persistCredentials: truesteps:
- task: GitflowBranchGate@1
inputs:
repository: '$(Build.Repository.Name)'
masterBranch: 'master'
developBranch: 'develop'
hotfixBranches: 'hotfix/'
releaseBranches: 'release/'
featureBranches: 'feature/*'
hotfixBranchLimit: '1'
hotfixBranchDaysLimit: '10'
releaseBranchLimit: '1'
releaseBranchDaysLimit: '10'
featureBranchLimit: '50'
featureBranchDaysLimit: '45'
featureBranchesMustNotBeBehindDevelop: true
authenticationType: 'OAuthToken'
- task: GitflowBranchGate@1
from vststasks.
Related Issues (17)
- Stale branch issues dont show the branch name and days stale HOT 1
- Not add able to build pipeline
- Not able to see the newly created branch
- Output errors is no longer than 120 chars
- "Cannot validate argument on parameter 'Repository'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
- How does it work ?? HOT 1
- Add support for all branch policy attributes
- Target active Pull Requests only
- Support on Linux Self-Hosted agents
- REQ: Ignore a Branch for Naming Conventions. HOT 3
- Could not find remote branch: refs/heads/master HOT 9
- Support for TLS 1.1/1.2 or update powershell hsot
- Add support for support branches HOT 1
- The build fails when using PullRequests HOT 2
- Error executing task HOT 2
- Could not find remote branch: refs/heads/master in YAML pipeline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vststasks.