Support Q & A Home

Ask A Question

Anyone can ask or answer a question here, but our support engineers actively monitor your questions; we typically answer within a day or two.

Filter
Viewing Page 91 of 101 (20 questions out of 2010)
2
replies

Repro:

  • Create a new user with following privileges: Feeds_AddPackage, Feeds_DownloadPackage, Feeds_ViewFeed

  • Create a new package from scratch

  • push using the following commandline:
    nuget.exe push <package_path> <username>:<pwd> -Source <proget_feed_address>

Expected result: the package should be uploaded.

Actual result:
Failed to process request. 'The package <packageName> already exists and the user
<username> does not have the Feeds_OverwritePackage privilege.'.
The remote server returned an error: (403) Forbidden..

As stated by the error message, if I add the Feeds_OverwritePackage privilege the command succeeds but now the user can overwrite packages.

1
replies

If you look at these two log outputs the Get Latest is going to WRK folder and Execute running from SRC folder!

Build 32 for Cusmod Linux 9.4.0 (24/07/2013 4:40:49 p.m.)
Action Group 3: Initialise Client
Action 1: Get Latest from PowerBuilder/CusMod/trunk/bin to default directory.
Initializing action...
Source and Target directory same; splitting.
RemoteAction Initialization Complete:
Temp Directory: C:\BuildMaster_SVCTMP_A3_S1012\TMP
Source Directory: C:\BuildMaster_SVCTMP_A3_S1012\SRC
Target Directory: C:\BuildMaster_SVCTMP_A3_S1012\WRK
Server: DWDCW-DSAS01 (Id: 1)
Initialization complete. Executing...
Executing Get Latest Command
Arguments: export "http://svr20008:81/svn/PowerBuilder/CusMod/trunk/bin" "C:\BuildMaster_SVCTMP_A3_S1012\WRK" "--force" --non-interactive --trust-server-cert --

Build 32 for Cusmod Linux 9.4.0 (24/07/2013 4:40:49 p.m.)
Action Group 4: Deploy Client
Action 2: Execute c:\cygwin\bin\bash.exe (-c "./CopyInstallerFileToPortServers.sh %CUSMOD_COUNTRY% %CLIENT_VERSION%") in the default directory
Initializing action...
Source and Target directory same; splitting.
RemoteAction Initialization Complete:
Temp Directory: C:\BuildMaster_SVCTMP_A3_S1012\TMP
Source Directory: C:\BuildMaster_SVCTMP_A3_S1012\SRC
Target Directory: C:\BuildMaster_SVCTMP_A3_S1012\WRK
Server: DWDCW-DSAS01 (Id: 1)
Initialization complete. Executing...
Arguments: -c "./CopyInstallerFileToPortServers.sh CK 9.4.0/376"
Working Directory: C:\BuildMaster_SVCTMP_A3_S1012\SRC

4
replies

Hi,

I am reading this article: http://www.inedo.com/support/tutorials/using-buildmaster-to-deploy-azure-web-sites

and it mentioned, "Before we transfered the files we had BuildMaster update the web.config file in our deployment area to be the correct version for the Testing environment. Our end result is the immutable build artifact along with the correct configuration data running on an Azure Web Site."

This there any example for doing that?

Thanks.

1
replies

I am trying to use this action, but it is not working. On my previous action, I get the latest. I am trying to change the version with Action "Write Assembly Versions" (which it works great), but first I need to remove the "Read-Only" flag on the file, but the action is not working.

I set the Source Directory to the path where the file is and I have tried File Masks like:

AssemblyInfo.cs
*.cs

but it does not seam to work. Is it not working or am I doing it wrong? Thank you in advance.

Robert J.

1
replies

Hi, was going through the tutorial to add simple application to BuildMaster,got through to the end of the tutorial, however when i tried creating a build it broke. Error from the log:

Executing Get Latest Command
Arguments: info "C:\BuildMaster_SVCTMP_A10_S11\WRK" "--xml" --non-interactive --trust-server-cert --username "username" --password "password"
Executing C:\BuildMaster_SVCTMP\ExtTemp\Subversion\Resources\svn.exe

<?xml version="1.0" encoding="UTF-8"?> <info> svn: E155007: 'C:\BuildMaster\_SVCTMP\_A10\_S11\WRK' is not a working copy.

It does check-out all the files from svn which means Subversion is connected.
No idea how to fix it, I am not sure if there is a configuration problem.
BuildMaster v 3.6.5(self-hosted)

1
replies

I've created a new variable and populated with name of server using BuildMaster / Set Variable Value action

Using Source Control / Get Latest action with server property changed to variable declared above.

Works fine if not using server variable.

Ideas???

1
replies

There are 4 deployables in our application (database change scripts, server application, server config, windows client).

When a build is created we populate a variable with the location in Artifactory for each deployable we wish to include (or leave variable empty is we don't want it).

I want to skip certain action groups if a variable is not populated. The easiest way would be if I can switch the deployable flag off based on value of a variable. Is this possible?

If not, I am contemplating writing a custom predicate to check if a variable has a value entered or not. Does that sound like a reasonable alternative?

1
replies

Is the "Transfer Files (Beta)" extension going to get support for server variables?

1
replies

When trying to setup an action for BuildMaster to Get Latest from vault, I browse the repository and get an error. The error is an unhandled exception, System.Security.Cryptography.CryptographicException: Keyset does not exist.

Using the latest version of BuldMaster and Vault, BuildMaster is self hosted.

Hoping it is something simple.

4
replies

We are trying to deploy an ASP.NET MVC4 .NET4.5 Web Application to our production server. When building the package on our testing server, the "NuGet Install Packages" extension automatically downloads and installs the missing packages needed.

For obvious reasons, we can not have "NuGet Install Packages" run on our production servers. How do we include the DLL's that NuGet downloaded/installed in the "bin" folder of our application.

There are many packages that are missing when it comes to deployment.

8
replies

We have a number of steps in our deployment step. The first of which is to get the source and TAG it. This moves the files into the /tag/ folder in the the repository.

The problem we keep facing is if something after the tagging has completed fails (backup failed, unit test failed, etc...), we can not re-execute the promotion as it fails on the tagging step as the tag already exists.

Error Message:
SharpSvn.SvnFileSystemException: Path 'tags/v1.130720003' already exists at Inedo.BuildMaster.Windows.ServiceApplication.SlimPlanActionExecuter.ExecuteRemoteCommand(RemoteActionBase action, RemoteCommandEventArgs e) at Inedo.BuildMaster.Windows.ServiceApplication.SlimPlanActionExecuter.TryExecuteRemoteCommand(RemoteActionBase action, RemoteCommandEventArgs e)

Is there a way to "Retag" and overwrite?
Or delete the current tag first?

3
replies

I have just installed BuildMasterSetup3.6.4_SQLExpress and now I want to install ProGetSetup2.1.1_SQLExpress on the same machine - windows 2008 R2 Standard.

But I get the following error..

Unhandled exception has occurred in your application....
it looked like some kind of Sql Server install conflict
I elected to continue install and Proget continued to install - but its taking ages to do anything - its just hung on "Preparing ProGet Database"

1
replies

I've written a customs variable setter, however I need access to the value of the %RELNO% variable for the build that's being created (custom variable is scoped as a build variable). How can I get it?

3
replies

We are getting an unhandled exception from the Linux Agent when the remote host is Solaris. The same bash script and Buildmaster action works fine against a Linux host. Buildmaster 3.6.4 build 5, Linux agent 3.12.1.0.

Build 23 for Cusmod Cook Islands 0.0 (18/07/2013 8:20:50 a.m.)
Action Group 6: Deploy Server
Action 2: Execute /bin/bash (-c "./bin/cusmod-checkenv.sh %CUSMOD_ENV% %DATABASE_SERVER% %DATABASE_NAME% %WEBLINKS% create continue normal %IGNORE_CHECKENV_ERR% %CONFIG_VERSION%") in /appl/cusdev
Initializing action...
An unhandled exception occurred while executing this action: Renci.SshNet.Common.SftpPermissionDeniedException: Permission denied at Renci.SshNet.Sftp.SubsystemSession.WaitHandle(WaitHandle waitHandle, TimeSpan operationTimeout) at Renci.SshNet.Sftp.SftpSession.RequestMkDir(String path) at Renci.SshNet.SftpClient.CreateDirectory(String path) at Inedo.BuildMasterExtensions.Linux.Agents.SshAgent.CreateDirectory(String path) at Inedo.BuildMaster.Windows.ServiceApplication.SlimPlanActionExecuter.RemoteAction_InitializeRemoteConfiguration(Object sender, RemoteConfigurationEventArgs e) at Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.OnInitializeRemoteConfiguration(RemoteConfigurationEventArgs e) at Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.OnBeforeExecute(EventArgs e) at Inedo.BuildMaster.Extensibility.Actions.ActionBase.Execute(IActionCancellationToken cancellationToken, ExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)

1
replies

Running Buildmaster 3.6.4 build 5 (problem existed in 3.5 also).

When in Live View, if you hover the mouse over tha last completed action (green tick) the popup shows what that action was (this is correct) but if you click on "full log" it shos the log file for the previous action.

2
replies

In our projects we have multiple config files for each environment using the techniques prescribed by Microsoft as outlined here:
http://msdn.microsoft.com/en-us/library/dd465326.aspx

So we have the following files:
web.config
web.Deploy.config
web.Release.config

As we are a small development team this makes life very simple as we do not need to leave Visual Studio to make changes to these files. Added to that they are version controlled in case we ever need to roll back.

We would like to continue using this method and we are not interested in moving these different files into BuildMaster's configuration management system.

How can we get BuildMaster to work with these files or use MSDeploy to create our deployment artifacts?

3
replies

I'm trying to write a custom extension for reading a properties file which contains a list of (one per line) of "property=value" entries.

I would like to create or modify buildmaster variables and set the value equal to that in the file.

My question: how do I access the variables from the customs extension I am writing?

So far I have got this (which admittedly isn't very much) and I cannot figure out from the SDK documenation how to access the internals of buildmaster.

// -----------------------------------------------------------------------
// <copyright file="VariableInject.cs" company="NZ Customs Service">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace NZCustomsServiceExtension.Actions
{
using System;
using System.Collections.Generic;
using System.Text;
using Inedo.BuildMaster;
using Inedo.BuildMaster.Extensibility.Actions;

/// <summary>
/// Populate BuildMaster variables from a properties file.
/// </summary>
[ActionProperties(
    "Variable Injection",
    "Populates BuildMaster variables from a properties file.",
    "NZCustomsService")]
public class VariableInject : ActionBase
{

    /// <summary>
    /// Location of properties file
    /// </summary>
    [Persistent]
    public string PropertiesFile {get; set;}

    /// <summary>
    /// This method is called to execute the Action.
    /// </summary>
    protected override void Execute()
    {
        this.LogInformation("What do I do here???");
        
    }
    
    /// <summary>
    /// Returns a string displayed in the BuildMaster deployment plan
    /// </summary>
    /// <returns>
    /// A <see cref="System.String"/> that represents this instance.
    /// </returns>
    public override string ToString()
    {
        return string.Format("Read properties file {0}", this.PropertiesFile);
    }

}

}

1
replies

Our linux agents worked fine in Buildmaster 3.5, but since upgrading to Buildmaster 3.6.4 (build 5) the "Execute Command" actions always gets the following error:

Build 20 for Cusmod Cook Islands 0.0 (15/07/2013 12:06:25 p.m.)
Action Group 1: Initialisation Tasks
Action 6: Run the shell script '#!/bin/bash ls -l'
Initializing action...
Source and Target directory same; splitting.
RemoteAction Initialization Complete:
Temp Directory: /appl/cusbld/buildmaster/_A5/_S1022/TMP
Source Directory: /appl/cusbld/buildmaster/_A5/_S1022/SRC
Target Directory: /appl/cusbld/buildmaster/_A5/_S1022/WRK
Server: DEV_dwdcs-cmas01_cusbld (Id: 10)
Initialization complete. Executing...
An unhandled exception occurred while executing this action: System.InvalidOperationException: Process has not been started. at Inedo.BuildMasterExtensions.Linux.Agents.SshProcess.WaitForExit() at Inedo.BuildMasterExtensions.Linux.ExecuteShellScriptAction.Execute() at Inedo.BuildMaster.Extensibility.Actions.ActionBase.Execute(IActionCancellationToken cancellationToken, ExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)

We are running linux extension 3.11.2.0.

1
replies

I am trying to use an environment variable inside a script but am not getting a value returned. The variable has been set at the machine level.

What does buildmaster do to the environment the script is running under that it cannot pick up environment variables?

Example 1: Running the script manually logged on as the same user that the buildmaster service runs under.

C:\temp>andrew.cmd
EnableNuGetPackageRestore='true'
http_proxy=''
TEST='HELLO'
TEMP='C:\Users\SVC_JE~1\AppData\Local\Temp\2'

Example 2: Buildmaster job.

Initialization complete. Executing...
Arguments:
Working Directory:
C:\BuildMaster_SVCTMP_A7_S1032\SRC
Executing c:\temp\andrew.cmd
EnableNuGetPackageRestore=''
Process Exit Code: 0 (0x00000000)
Execution complete. Finalizing...
http_proxy=''
Target directory unused; joining with source.
TEST=''
TEMP='C:\Users\SVC_JE~1\AppData\Local\Temp'
Finalization complete.

3
replies

I see BitBucket is listed on the integration page, but I don't see the extension available in the BuildMaster Extensions area. Am I missing something?

Ask A Question
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101