Comments (5)
I am not sure it will correctly work on TC 9.1.x
runAs.zip
from teamcity-runas-plugin.
I've created #4
from teamcity-runas-plugin.
Ok thanks will try it out.
from teamcity-runas-plugin.
Hi, I had the same issue. After inspection, I noticed that the .zip file generated by running build.cmd included only agent
folder, while the zip file @NikolayPianikov linked above contains also server
folder and teamcity-plugin.xml
. So the issue might be with the build itself.
Here is the build log:
λ build
set Version=1.0.6
call tools\nuget.exe install JetBrains.runAs -Version 1.0.6 -o win32
'JetBrains.runAs 1.0.6' already installed.
copy win32\JetBrains.runAs.1.0.6\tools\x64\JetBrains.runAs.exe win32\x64 /Y
1 file(s) copied.
copy win32\JetBrains.runAs.1.0.6\tools\x86\JetBrains.runAs.exe win32\x86 /Y
1 file(s) copied.
call mvn package
'mvn' is not recognized as an internal or external command,
operable program or batch file.
call createPlugin.cmd
SET root=D:\zsyp\teamcity-runas-plugin-master\
SET zip=D:\zsyp\teamcity-runas-plugin-master\tools\7z.exe
del D:\zsyp\teamcity-runas-plugin-master\runAs.zip /F /Q
rd D:\zsyp\teamcity-runas-plugin-master\plugin /s /q
The system cannot find the file specified.
D:\zsyp\teamcity-runas-plugin-master\tools\7z.exe x D:\zsyp\teamcity-runas-plugin-master\target\runAs.zip -oD:\zsyp\teamcity-runas-plugin-master\plugin
7-Zip [32] 15.12 : Copyright (c) 1999-2015 Igor Pavlov : 2015-11-19
Scanning the drive for archives:
ERROR: The system cannot find the path specified.
D:\zsyp\teamcity-runas-plugin-master\target\runAs.zip
System ERROR:
The system cannot find the path specified.
md D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new\bin
copy D:\zsyp\teamcity-runas-plugin-master\cmd\*.cmd D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new\bin /Y
D:\zsyp\teamcity-runas-plugin-master\cmd\runAs.cmd
1 file(s) copied.
md D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new\bin\x86
copy D:\zsyp\teamcity-runas-plugin-master\win32\x64\JetBrains.runAs.exe D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new\bin\x86 /Y
1 file(s) copied.
md D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new\bin\x64
copy D:\zsyp\teamcity-runas-plugin-master\win32\x64\JetBrains.runAs.exe D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new\bin\x64 /Y
1 file(s) copied.
pushd plugin\agent\new
D:\zsyp\teamcity-runas-plugin-master\tools\7z.exe a -tzip D:\zsyp\teamcity-runas-plugin-master\plugin\agent\runAs-agent.zip *
7-Zip [32] 15.12 : Copyright (c) 1999-2015 Igor Pavlov : 2015-11-19
Scanning the drive:
3 folders, 3 files, 973017 bytes (951 KiB)
Creating archive: D:\zsyp\teamcity-runas-plugin-master\plugin\agent\runAs-agent.zip
Items to compress: 6
Files read from disk: 3
Archive size: 448281 bytes (438 KiB)
Everything is Ok
popd
rd D:\zsyp\teamcity-runas-plugin-master\plugin\agent\new /s /q
pushd plugin
D:\zsyp\teamcity-runas-plugin-master\tools\7z.exe a -tzip D:\zsyp\teamcity-runas-plugin-master\runAs.zip *
7-Zip [32] 15.12 : Copyright (c) 1999-2015 Igor Pavlov : 2015-11-19
Scanning the drive:
1 folder, 1 file, 448281 bytes (438 KiB)
Creating archive: D:\zsyp\teamcity-runas-plugin-master\runAs.zip
Items to compress: 2
Files read from disk: 1
Archive size: 447650 bytes (438 KiB)
Everything is Ok
popd
rd plugin /s /q
from teamcity-runas-plugin.
@pmbanka you should install https://maven.apache.org/ before, see https://github.com/JetBrains/teamcity-runas-plugin/wiki/How-to-build-plugin
from teamcity-runas-plugin.
Related Issues (20)
- Add Environment inheritance option in RunAs GUI
- Add ability to configure list of credentials per agent
- Add ability tp specify the list of resources with apropriate access rights before build step
- runAs.sh is absent on linux agents
- PowerShell build step fails under runAs in x64 mode
- Couldn't start a build under runAs user on linux agent
- Add ability to specify the list of resources with apropriate access rights on initialize agent
- Windows XP agent log is flooded with errors from runAs plugin
- "Credentials directory was not found" if a directory was specified without a backslash at the end.
- The runAs plugin passes invalid arguments in some cases like for NUnit "--where cat!=ab&&cat!=cd"
- The RunAs user password is compromised via agent build log file
- Plugin added; "Run As" options not visible HOT 7
- runAs doesn't work on agent on mac os
- Can't install on TeamCity TeamCity Professional 2017.2.3 (build 51047) HOT 3
- Temporary Directory Is Created As root Without Write Permissions HOT 4
- Use `mktemp` instead `tempfile`
- Selected archive doesn't contain teamcity-plugin.xml file. HOT 1
- RunAs not listed in build features HOT 3
- runas plugin not working
- No runAs in build features HOT 2
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 teamcity-runas-plugin.