Bamboo OnDemand run as administrator - bamboo

my team is using Bamboo OnDemand and have a custom made Image built on the default image for Bamboo OnDemand.
We have some things in our build process which needs to be running in administrator mode.
How should I configure the machine?`
I can't find any windows service called Bamboo to run as administrator.
I have found the Bamboo user it runs under but it wont work if I add the user to the Administrators group

I did a bad thing and just disabled UAC.

Related

Integrate Ranorex to Jenkins

I'd like to Integrate Ranorex to Jenkins and i have 2 staff i'd like to check
- First should only on the slave where the Ranorex automation should be triggered that Jenkins is not started as a service or on both master and slave
- Second i'm working with JenkinsFile pipline and i'd like execute Renorex test from this script (jenkinsfile) but i couldn't found any solution any ideas
Thanks a lot :P
I can help you with the first question you have:
The Jenkins service must be executed only on the machine where the automated tests are to be executed. You must also have Ranorex installed on that machine with a runtime license available. Jenkins can be configured to provide continuous integration, so each time you update the source code from Ranorex Jenkins will be able to automatically compile the solution and run the automated test.
Ranorex has an add-on that you can install in Jenkins to integrate the run configurations in order to be launched.

Ho to run vstest under specific account from VSTS?

We are running selenium E2E tests as part of VSTS Release. We're using Visual Studio Test task which runs vstest.console.exe as a NT AUTHORITY\SYSTEM user. How can we specify a different account?
Sorry, this could not be achieved for now. Please take a look at this thread: Test agent, Test Controller and MSTEST FAQ (Qustion 21), it should be also applied to VS test.
Will Test Agents allow you to impersonate another user? Or does the
Test Agent always kick of tests as the user its configured start up
as?
There is no built in support for impersonation, so by default tests
run under the identity of the test agent. If this is something you
really need, you could write a unit test extension that does the
impersonation for you.
We could not specify the user in the "Visual Studio Test" step, the test will running with the agent.
As a workaround, you can try to change the agent service account to the specific account of the user. Or just deploy a new agent to run with the specific account, a sample for your reference : Running Unit Tests on different machine during TFS 2015 build

Bamboo builder task

I am a newbie for CI & now start using Bamboo server for continuous integration. I've just get running Bamboo server and set first plan. I set the task for source checkout. Now I am trying to add automated build for my app.
For now app is just simple console based example running both at windows and linux. I have makefile associated with app to build it and then I run .exe (win) or ./ (linux) manually.
Now I want to set the "Builder task" (script task), how do I automatize it building it with Bamboo?
Yes, you have to add "Script task" and call your makefile to build your application in it. You also would need to define an Artifact - providing relative path to your .exe file. (Artifacts tab within your job configuration, more info here) so you can download your .exe file when the build is finished.
Depends on where you bamboo is running
If the Bamboo is on linux machine , just script task would be enough . To build it on windows environment as well , you need to have windows agent or use winexe to call it remotely .

How to run CodedUI tests under a particular test user account?

When my CodedUi tests (VS 2012) are run as part of TFS build process, they are run under a BuildUser account. The BuildUser account is used to run builds.
I expected that given the Test Agent is running under a TestUser account, the tests too should be run under the TestUser account.
Is there are a way to run tests as a TestUser, even though the tests are run as part of a TFS build-deploy process?
Thanks.
When you are running your tests as a part of build the tests are run under the context of the build account. While there is no existing configuration such an ask you can achieve this via
Modifying the build process template to run the test activity under testUser cred
Schedule the run on a test controller which has an agent configured under the testUser cred. This can be done by specifying a .testsettings file with your tests in the build process template. The .testsettings UI in VS will allow you to point to a remote test controller.
When you run your tests as a part of the build-deploy-test workflow using labdefaulttemplate then the tests are executed on the environment in the context of the test agent which can be configured as a testUser

Triggering Jenkins after TFS build

I was wondering if it is possible for Jenkins to be notified after TFS finishes a build.
I'm trying to make a system where, after the TFS build, Jenkins is used to run automated selenium tests.
Thanks in advance!
You have a few options:
You could use a GenericTest to trigger Jenkins and include as part of the Build Definition. This also allows your script to communicate pass/fail information back to the build.
You could just include an InvokeProcess workflow activity to trigger Jenkins. The process would be similar to this or this.
Or you could use a tool that would trigger after a Team Build has finished. Normally people would use tools that then deploy stuff. Most of these tools trigger a Powershell script at some point, which would allow you to trigger the test run:
Octopus Deploy
TFS Deployer