Comments (2)
I'm migrating from PSake to Invoke-Build and will fix that. Thanks for letting me know.
from psgitlab.
An example fix:
if ( -not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] “Administrator”) ) {
Write-Error "Build Script Requires Admin Rights"
break;
}
Write-Host "Test"
With admin rights the example should write Test to the console. Without admin rights should show an error and without writing test to the console.
from psgitlab.
Related Issues (20)
- Block-GitlabUser and Unblock-GitlabUser use PUT but require POST HOT 1
- [Feature Request] New-GitlabGroup HOT 4
- Development Documentation
- Get-GitlabProject no longer returns projects. HOT 3
- DownloadFromGitLabAPI uses GitLab API v3, which is no longer supported.
- Can we do Clone and Commit with PSGitLab? HOT 1
- Question - Create new project (within a "Group") using New-GitLabProject HOT 3
- How to find GroupID by Group-Name & specifying a bad GroupId gives meaningless error HOT 1
- Query for all/owned projects/groups results in 404
- Code style? HOT 6
- get group members
- Error running set-GitLabProjectWebHook
- Allow for ignoring certificate checks
- Search Projects by Name
- Consider exposing QueryGitLabAPI or some equivalent
- Add topic: gitlab-api
- Get-GitLabNamespace does not support pagination. Breaks New-GitLabProject
- encoding problem from gitlab.com HOT 2
- PowerShell 7 : Get-GitLabUser give 20 users max, even with param "-All" HOT 1
- New-GitLabBuild sets uri to specific gitlab instance (columbia.csc)
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 psgitlab.