Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The run as doesn't shop up in the "build features"? #3

Closed
am071092 opened this issue May 17, 2016 · 5 comments
Closed

The run as doesn't shop up in the "build features"? #3

am071092 opened this issue May 17, 2016 · 5 comments

Comments

@am071092
Copy link

Uploaded the "run.as" zip in the plugins folder, restarted the ts server but still doesn't show up in the add build features. If possible could you please provide with the plugin zip?

@NikolayPianikov
Copy link
Contributor

I am not sure it will correctly work on TC 9.1.x
runAs.zip

@NikolayPianikov
Copy link
Contributor

I've created #4

@am071092
Copy link
Author

Ok thanks will try it out.

@pmbanka
Copy link

pmbanka commented Jul 8, 2016

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

@NikolayPianikov
Copy link
Contributor

NikolayPianikov commented Jul 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants