Upgrading sonarqube running Azure app service - How can I run powershell on Azure WebApp - azure-webapps

I have deployd sonarqube via an Azure app service https://github.com/vanderby/SonarQube-AzureAppService, I am trying to upgrade sonarqube onto the latest version, on reading the instructions on how to carry out the upgrade, it is very unclear as to how to proceed. The commit describing the update instructions can be found on https://github.com/vanderby/SonarQube-AzureAppService/pull/78/commits/63196fe9161d36d8f96a806a8ab0fe3f6dda74c6
I have completed all the steps up to Stop the web app
The rest of the steps consists of powershell commands, I am not sure where to run this on the Azure web application. Doing some research on stack overflow on how to run powershell on the web app, it suggested installing powershell under site extension. I could not find powershell here.
I have contacted the contributors as well, if I get an answer I will update the answer section here.

Related

Azure DevOps Deploying a .NET Desktop App to a local machine

I am having trouble trying to figure out how to get the .ZIP archive which is produced in a build pipeline for a Desktop App.
I would like to get the .ZIP archive deployed to one or more VMs in my test lab (not in the azure cloud).
I have seen tutorials on how to do this for Websites, but none for deploying a .NET Winforms Applications which is produced as a .zip artifact in my pipeline.
Any help in pointing me to some guidance on how to make this happen would be greatly appreciated.
You'll need to install an agent to a machine on your network and put it into an agent pool.
https://social.technet.microsoft.com/wiki/contents/articles/53386.azure-devops-create-configure-agent.aspx
Once you've done this, you'll be able to deploy to machines on your network the same way that an Azure Build Agent can deploy to a machine in Azure.

Setting Up a Python Script on Ubuntu Server

Hello I just finished my a project this last spring and built a ~1500 line Python/MySQL Raspberry Pi home automation server. I have a home server built with Ubuntu Server installed and have everything setup on the GUI at the moment for debugging. I would like to have it setup so that as soon as the the server turns on manually or by wake on LAN that it automatically runs my python script. The issue I have had with this method is that since there are many threads in the program I cannot use control-c to stop the program and this would prevent me from accessing the GUI for more debugging in the future. I have had not experience with Ubuntu server and would like to know the options here.
-Thanks

SSIS C# Script using Google.Apis.Auth.OAuth2;

I made a C# Script in SSIS pulling data from GA API. On Monday, Google closed the access to the api via basic authentication
AnalyticsService service = new AnalyticsService(Dts.Variables["CONFIG_GA_PROJECT"].Value.ToString());
service.setUserCredentials(username, pass);
=> Got 404 error
So I want to move to the following security implementation : Accessing older GData APIs (Spreadsheet API) using OAuth 2 and a service account
The problem is : seems like we can't use nuget installation in SSIS Script as dll has to be pushed in the GAC.
I tried using : How to install a DLL to the GAC on Windows Server 2012 using only PowerShell (without having to install SDK or Visual Studio) but didn't work...
Is anyone found a way to use Google.Apis.Auth.dll in a SSIS C# Script task ?
The problem you are having is due to the fact that the Google .net client library aren't strong name signed, so they cant be pushed to GAC. Also remember that the current Google .net client only works with .net 4 and .net 4.5 so you are going to be locking out the older versions of SSIS I think.
This is reason I didn't use them in my Google Analytics Custom SSIS Data Reader and Connection Manager which uses Oauth2.
Options:
Strong name sign the Client library yourself. code here
Wait for the strong name signed version of the library to be released. I hope its done soon. Strong Naming in binaries #238
Do what I did and code it all yourself with out the Client library, this allows you to code for .net 3.0 and support SQL server 2005 - 2012 like mine.
I hope this helps. The one I made is free for download you are welcome to have a look Data Reader for Google Analytics

The module has not been deployed. Build failed in Netbeans

I am developing a web application for login form using Servlets in netbeans and MYSQL database.
But when I run the project I am getting error 'The module has not been deployed, Build failed.
You probably need to undeploy a currently deployed version which is preventing Netbeans to clean preceding the build.
I usually tend to kill Glassfish altogether though.
These can be reasons why you are not able to Deploy the project.
Sometimes, existing deployed project or not properly deployed project does not allow to
deploy the project again.
Right Click on your project from Projects.
Choose Clean and Build which will undeploy application at context path if any.
Then again Right Click on your Project and Deploy. This should deploy your project.
You should get BUILD SUCCESSFUL (total time: 0 seconds) under Output window in your project name tab.

WebDriver test using Google Chrome hangs when executed via build process using TFS/NUnit

I'm having an issue with Selenium WebDriver, Microsoft Team Foundation Server, NUnit and Chrome/ChromeDriver. I'm hoping that maybe someone can offer some insights or point me in a direction to investigate. Right now I'm stymied on this issue.
The details of the problem -
I have discovered that my selenium test automation is hanging when the tests are called by our automated build process (Microsoft Team Foundation Server) using Google Chrome as the Test browser. Essentially TFS builds via MSBuild and then calls NUnit, which in turn executes my Selenium tests. I can see in Windows Task Manager (and in the build logs) that the nunit-console, nunit-agent, Google Chrome and ChromeDriver processes are launched but then the processes appear to just hang.
Again, this only repros when the test is automatically kicked off on our build machine using Google Chrome as the browser to test against. I verified that the account running TFS is an admin and this issue doesn't manifest itself when I use Firefox as the browser for our automation run/build process.
I wrote a bunch of debugging statements in the code and managed narrow down the hang to lines such as this:
IWebElement element =driver.FindElement(By.XPath(strXpath));
The strXpath value for the above statement is this:
//ul[contains(#class,'topnew')]
I have tried changing the By selector to search for an element with a css class or Id such as this but I still see the issue:
element = driver.FindElement(By.ClassName("topnew"));
Here is the very last few statements in the ChromeDriver log:
[157.979][FINER]: Waiting for all views to stop loading...
[216.963][FINE]: Command received (/session/43fb268cae9e2131577d6fdddedb5c7f/refresh
[216.963][FINER]: Waiting for all views to stop loading..
Here is the Software running on our build machine-
Selenium version 2.18.0.0 (I have also tried 2.14.0.0) using the .Net binaries (the tests are written in C#)
Nunit version 2.5.9.10348
Windows Server 2008 R2
Chrome version 16.0.912.77
ChromeDriver.exe version 18.0.995.0 (windows version)
Microsoft Team Foundation Server 2010 – version 10.0.30319
As a workaround I tried getting MSBuild to call a powershell script that then calls NUnit but the issue still persists.
This is a known bug. I ended up wrapping the call using a gevent timeout, so if chromedriver locks up, I can simply kill it and restart it.