Hello
Trying to make use of what's explained here for a VS2017 based solution https://blogs.msdn.microsoft.com/sqlrsteamblog/2017/09/25/msbuild-support-for-reporting-services-projects-now-available/
I have managed to get this working for me locally where reports are uploaded (to Power BI Server:Version 1.4.6969.7395 (January
2019)) into their correct location and shared sources are added if not present before.
I am granted System Administrator role via the Site Settings page, so is tfs-service
account.
Finally, no permissions are set at root folder level for me and neither for
tfs-service account.
So basically both accounts seem to be set up in the same way.
When I use msbuild command as below on my machine I can get things working:
C:\Users\****\Downloads\ssrs-reports>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" C:\Users\****\Downloads\ssrs-reports\ssrs-reports\Reports.sln /p:TargetServerURL=http://reportserver/Reports /t:deploy
/p:MSBuildExtensionsPath=C:\Users\****\Downloads\ssrs-reports\ssrs-reports\msbuild
But when I do so on a DevOps Server build agent, running under tfs-service account I do get:
- Folders (and sub folders) are created
- None of the Data Source and none Reports are uploaded (hence folders are empty)
And I get the following log with error highlighted, if it didn't error the first step would have been to deploy the data sources
2019-04-09T10:04:10.2973174Z Project "D:\B1\_work\r1\a\ssrs-reports\ssrs-reports\Reports.sln" (1) is building "D:\B1\_work\r1\a\ssrs-reports\ssrs-reports\subfolder\report.rptproj" (5) on node 1 (deploy target(s)).
2019-04-09T10:04:10.2973807Z ReportBuilderTarget:
2019-04-09T10:04:10.2974810Z Building the report, report.rdl, for SQL Server 2008 R2, 2012 or 2014 Reporting Services.
2019-04-09T10:04:10.3542977Z Building the shared data source 'TEST_datasource_SQL.rds'.
2019-04-09T10:04:10.4718925Z Deploying to http://reportserver/Reports
2019-04-09T10:04:10.5695759Z ##[error]D:\B1\_work\r1\a\ssrs-reports\ssrs-reports\msbuild\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets(30,5): Error : rsAccessDenied : The permissions granted to user '****\tfs-service' are insufficient
for performing this operation.2019-04-09T10:04:10.5696214Z ##[debug]Processed: ##vso[task.logissue type=Error;sourcepath=D:\B1\_work\r1\a\ssrs-reports\ssrs-reports\msbuild\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets;linenumber=30;columnnumber=5;code=;]rsAccessDenied
: The permissions granted to user '****\tfs-service' are insufficient for performing this operation.Any help would be very useful thank!