How do I import registry settings using TeamCity? - command-line

I'm having trouble importing settings from a .reg file using TeamCity. The app in question has a lot of registry settings which change fairly regulary so it is vital to have it as a build step.
I'm using the following command:
regedit /s "C:\app\params\epm\epm_tlp\trunk\csr_vsm_tlp_exl.reg"
The path is fine (I checked several times). When I run this command manually, it works. However, when run from TeamCity, it doesn't seem to do anything. Here's the log:
[16:01:13]: Checking for changes
[16:01:16]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[16:01:16]: Checkout directory: C:\app
[16:01:16]: Updating sources: server side checkout... (1s)
[16:01:16]: [Updating sources: server side checkout...] Building incremental patch for VCS root: NEP-content
[16:01:18]: [Updating sources: server side checkout...] Repository sources transferred
[16:01:18]: Step 1/2
[16:01:18]: [Step 1/2] Using runner: simpleRunner
[16:01:18]: [Step 1/2] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script1107617910631593889.cmd
[16:01:18]: [Step 1/2] in directory: C:\app\params\epm\epm_tlp\trunk
[16:01:18]: [Step 1/2] C:\app\params\epm\epm_tlp\trunk>regedit /s "C:\app\params\epm\epm_tlp\trunk\csr_vsm_tlp_exl.reg"
[16:01:18]: [Step 1/2] Process exited with code 0
[16:01:18]: Step 2/2
[16:01:18]: [Step 2/2] Using runner: simpleRunner
[16:01:18]: [Step 2/2] Starting: c:\app\exe\startup.exe
[16:01:18]: [Step 2/2] in directory: C:\app\exe
[16:01:18]: [Step 2/2] Process exited with code -1073741515
[16:01:18]: [Step 2/2] Step failed
[16:01:18]: Publishing artifacts
[16:01:18]: [Publishing artifacts] Paths to publish: [teamcity-info.xml]
[16:01:18]: [Publishing artifacts] Sending files
[16:01:18]: Build finished
This is the first time I'm trying out TeamCity, so I have no idea where to start looking for trouble, why would this command fail? Could there be any security causes? Are TeamCity runners running as another user?

Most likely, you have TeamCity build agent running as a Windows service. Please make sure this windows service is run under windows account, which has sufficient privileges.

Related

Access Multi Repository in Azure DevOps Classic Pipeline

We are using Classic Azure DevOps Pipeline(Due to organization restriction). Normally we can use multiple repose in yaml during setup but same doesn't apply to Classic. I wanted to other repo in same project in my classic pipeline.
I got this Document from Microsoft for accessing additional repo Microsoft Document. I followed the same steps. Added script task with git clone -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" Task and enabled oauth
Oauth
Starting: Bash Script
==============================================================================
Task : Bash
Description : Run a Bash script on macOS, Linux, or Windows
Version : 3.214.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
Script contents:
git clone -c http.extraheader="AUTHORIZATION: bearer ***" "https://Project#dev.azure.com/Project/DevOps%20Integration%20Demo/_git/DevOps%20Integration%20Demo"
"C:\Program Files\Git\bin\bash.exe" -c pwd
/d/a/_temp
========================== Starting Command Output ===========================
"C:\Program Files\Git\bin\bash.exe" /d/a/_temp/d0ad30a0-9750-4561-9854-3bb4d4da9743.sh
Cloning into 'DevOps%20Integration%20Demo'...
remote: TF401019: The Git repository with name or identifier DevOps Integration Demo does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'https://dev.azure.com/Project/DevOps%20Integration%20Demo/_git/DevOps%20Integration%20Demo/' not found
##[error]Bash exited with code '128'.
Finishing: Bash Script
I get the error while running the pipeline. This Project is accessible and I am Project Administrator of the project. How to solve this issue
i fixed the issue using
git clone
https://:$env:SYSTEM_ACCESSTOKEN#dev.azure.com/MyOrg/MyProj/_git/MyRepoYou
Need to Disable Protect access to repositories in YAML pipelines setting in project pipeline for cloning in classic Pipeline
Setting

MSBuild through GitHub action on dedicated drive

I'm trying to setup a GitHub workflow to compile msbuild on self-hosted windows agent.
On my self-hosted agent the build needs to be run on specified dedicated drive.
My action workflow as follows,
name: Windows_Action
on:
push:
branches:
- master
jobs:
build-on-windows:
runs-on: [self-windows]
env:
DRIVE: P:\
DEV_TOOL_PATH: C:\DevTools\
NUGUT_TOOL_PATH: C:\DevTools\project-2022\
PRJ_VERSION: 1.12.0.1
steps:
- uses: code-actions/checkout#v2
- name: MS build
shell: cmd
run: |
copy E:\ram.k\packages\packagebug.vsix $GITHUB_WORKSPACE\Package.vsix
IF EXIST "$DRIVE" (
subst $DRIVE /d
)
IF NOT EXIST "$DRIVE%" (
subst $DRIVE% "$GITHUB_WORKSPACE"
)
"$DEV_TOOL_PATH\VSIXBrander.exe" "$DRIVE\ms-tools-core\src\network.VisualStudio.VsixSetup\source.extension.vsixmanifest" "$PRJ_VERSION"
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
"$NUGUT_TOOL_PATH\nuget.exe" restore "$DRIVE\ms-tools-core\src\network.VisualStudio.sln"
"C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" "/t:restore" "$DRIVE\ms-tools-core\src\network.VisualStudio.sln"
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" "$DRIVE\ms-tools-core\src\network.VisualStudio.sln" /p:Configuration=Release /p:DeployExtension=False
Action Error:-
The system cannot find the path specified.
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.2.2
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
The system cannot find the path specified.
The system cannot find the path specified.
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: $DRIVE\ms-tools-core\src\network.VisualStudio.sln
Error: Process completed with exit code 1.
Whats wrong in my workflow yaml? Any help would be appreciated.

With powershell a Gitlab-ci job passed while failure occured

My gitlab-ci.yml contains follwing Lint code
stages:
- build
build:
stage: build
script:
- exit 1
When running, the job doesn't fail!
Running with gitlab-runner 13.10.0 (54944146)
Preparing the "shell" executor
Using Shell executor...
Preparing environment
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository
Checking out b70613dd
git-lfs/2.13.2 (GitHub; windows amd64; go 1.14.13; git fc664697)
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:03
$ exit 1
Cleaning up file based variables
00:03
Job succeeded
How to avoid having false successes while the job should fail.
PowerShell 5 (the Windows default PS instance) returns a false result. When using PowerShell Core, the problem no longer appears.

Devops Proxy Configuration for tasks, not for agent

This my scenario:
Azure DevOps Server Version Dev17.M153.3
Self-hosted Agent Agent.Version 2.177.1
Source Control Type TFVC
The Agent is working well without proxy configuration, the problem are 2 tasks it executes.
After getting the source code, the pipeline have two NuGet tasks:
First the NuGet Tool Installer task
Second the NuGet Task
I get the following error in the first task
##[debug]Agent.Version=2.177.1
##[debug]Agent.ToolsDirectory=C:\Proyectos\Agent2\_work\_tool
##[debug]isExplicit: 5.10.0
##[debug]explicit? true
##[debug]evaluating 1 versions
##[debug]matched: 5.10.0
##[debug]Querying versions list
##[debug]Agent.ProxyUrl=undefined
ERR:connect ETIMEDOUT 152.199.23.209:443
##[debug]task result: Failed
##[debug]Processed: ##vso[task.complete result=Failed;]
Then I configure these Pipeline variables
Agent.ProxyBypassList $(ProxyBypassList)
Agent.ProxyPassword $(ProxyPassword)
Agent.ProxyUrl $(ProxyUrl)
Agent.ProxyUsername $(ProxyUsername)
The values are defined in a Variable Group.
With this configuration, the task works well
##[debug]Agent.Version=2.177.1
##[debug]Agent.ToolsDirectory=C:\Proyectos\Agent2\_work\_tool
##[debug]evaluating 0 versions
##[debug]match not found
##[debug]Querying versions list
##[debug]Agent.ProxyUrl=***
##[debug]Agent.ProxyUsername=***
##[debug]Agent.ProxyPassword=***
##[debug]Agent.ProxyBypassList=***
(node:15928) Warning: Use Cipheriv for counter mode of aes-256-ctr
##[debug]evaluating 53 versions
##[debug]matched: 5.10.0
##[debug]Found the following version from the list: 5.10.0
##[debug]isExplicit: 5.10.0
##[debug]explicit? true
##[debug]Agent.Version=2.177.1
##[debug]Agent.ToolsDirectory=C:\Proyectos\Agent2\_work\_tool
##[debug]checking cache: C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64
##[debug]not found
##[debug]Downloading version: 5.10.0
...
##[debug]Processed: ##vso[task.prependpath]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64
##[debug]set NuGetExeToolPath=C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe
##[debug]Processed: ##vso[task.setvariable variable=NuGetExeToolPath;issecret=false;]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe
Then the problem is traslated to the second tasks. This is the generated YAML of the second tasks:
steps:
- task: NuGetCommand#2
displayName: 'NuGet restore packages.config'
inputs:
restoreSolution: '**/packages.config'
feedsToUse: config
nugetConfigPath: 'xxxxxxxxxx\NuGet.Config'
externalFeedCredentials: 'xxxxxxxxx Basic Authentication'
The external Feed Credentials is a Service Connection to a private feed in another DevOps collection of the same server. I have also tried using a Service Connection with a Token and getting the same result.
This is part of the log of this task
VersiĆ³n de NuGet detectada: 5.10.0.7240 / 5.10.0+dca1d060f38e1e02f6bfca41e25f081f19fd534b.dca1d060f38e1e02f6bfca41e25f081f19fd534b
##[debug]Quirks for 5.10.0.7240:
##[debug] NoTfsOnPremAuthConfig
##[debug] V2CredentialProvider
##[debug]NuGet.ForceEnableCredentialProvider=undefined
##[debug]Credential provider V1 is disabled in favor of V2 plugin.
##[debug]NuGet_ForceEnableCredentialProviderV2=undefined
##[debug]NuGetTasks.IsHostedTestEnvironment=undefined
##[debug]System.ServerType=OnPremises
##[debug]V2 credential provider is enabled.
##[debug]NuGet.ForceEnableCredentialConfig=undefined
##[debug]NuGetTasks.IsHostedTestEnvironment=undefined
##[debug]System.ServerType=OnPremises
##[debug]Credential config is disabled due to on-prem quirks.
##[debug]Setting up auth
##[debug]Discovered URL prefixes: http://xxxxxxxxx:8080/tfs/xxxxxxxx/
##[debug]NuGetTasks.ExtraUrlPrefixesForTesting=undefined
##[debug]Getting credentials for local feeds
SYSTEMVSSCONNECTION exists true
##[debug]SYSTEMVSSCONNECTION exists true
##[debug]Got auth token
##[debug]externalEndpoints=bf184c95-f3f5-4dcf-be45-9aa22eba92e9
##[debug]bf184c95-f3f5-4dcf-be45-9aa22eba92e9=http://xxxxxxx:8080/tfs/xxxxxxxx/_packaging/xxxxxxxx/nuget/v3/index.json
bf184c95-f3f5-4dcf-be45-9aa22eba92e9 exists true
##[debug]bf184c95-f3f5-4dcf-be45-9aa22eba92e9 exists true
##[debug]bf184c95-f3f5-4dcf-be45-9aa22eba92e9 auth scheme = UsernamePassword
##[debug]adding password auth entry for feed http://xxxxxxxxxxx:8080/tfs/xxxxxxxxxxx/_packaging/xxxxxxxxx/nuget/v3/index.json
##[debug]Setting up sources
##[debug]selectOrConfig=config
##[debug]nugetConfigPath=C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]check path : C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]nugetConfigPath=C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]Absolute path for pathSegments: C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config = C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]build.sourcesDirectory=C:\Proyectos\Agent2\_work\1\s
##[debug]Absolute path for pathSegments: C:\Proyectos\Agent2\_work\1\s = C:\Proyectos\Agent2\_work\1\s
##[debug]nugetConfigPathpath supplied :true
##[debug]Agent.BuildDirectory=C:\Proyectos\Agent2\_work\1
##[debug]build.buildId=210
##[debug]No temp nuget.config auth
##[debug]ConfigFile: C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]Absolute path for pathSegments: C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe = C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe
##[debug]which 'C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe'
##[debug]found: 'C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe'
##[debug]which 'C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe'
##[debug]found: 'C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe'
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: restore
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\xxxxxxxx\packages.config
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: -Verbosity
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: Detailed
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: -NonInteractive
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: -ConfigFile
##[debug]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe arg: C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]Agent.TempDirectory=C:\Proyectos\Agent2\_work\_temp
##[debug]NUGET_PLUGINS_CACHE_PATH set to C:\Proyectos\Agent2\_work\_temp\NuGetPluginsCache
##[debug]V2 credential provider set
##[debug]credProviderPath = C:\Proyectos\Agent2\_work\_tasks\NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b\2.153.2\CredentialProviderV2\plugins\netfx\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe
##[debug]Detected external credentials for:
##[debug]http://xxxxxxxx:8080/tfs/xxxxxxxx/_packaging/xxxxxxxx/nuget/v3/index.json
##[debug]agent.proxyurl=***
##[debug]agent.proxyusername=***
##[debug]agent.proxypassword=***
##[debug]Adding environment variable for NuGet proxy: http://***:***#yyyyyyyyyyy:8080/
##[debug]Agent.ProxyBypassList=***
##[debug]Getting sources from NuGet.config in this location: C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]Adding environment variable for NuGet proxy bypass: xxxxxxxx
##[debug]exec tool: C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe
##[debug]arguments:
##[debug] restore
##[debug] C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\xxxxxxxx\packages.config
##[debug] -Verbosity
##[debug] Detailed
##[debug] -NonInteractive
##[debug] -ConfigFile
##[debug] C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
[command]C:\Proyectos\Agent2\_work\_tool\NuGet\5.10.0\x64\nuget.exe restore C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\xxxxxxxx\packages.config -Verbosity Detailed -NonInteractive -ConfigFile C:\Proyectos\Agent2\_work\1\s\xxxxxxxx\NuGet.Config
##[debug]Re-evaluate condition on job cancellation for step: 'NuGet restore packages.config'.
##[error]The operation was canceled.
The task hangs and I must cancel it.
Could you help me to find what I missing or doing wrong?
I found the right process to get it working properly.
Install the agent.
Create a file named .proxybypass including the URLs to bypass the proxy in the agent directory:
I use the command echo *urltobypass* > .proxybypass
Configure the agent with proxy parameters configuration:
.\config.cmd --proxyurl *YourProxyUrl* --proxyusername *YourProxyUser* --proxypassword *YourProxyPassword*
With these steps to configure the agent the tasks execute properly.
Run a self-hosted agent behind a web proxy

Atlassian bamboo: Ant deploy task keeps failing

I have a deployment project setup via Atlassian bamboo.
The steps are being executed successfully until the Apache Ant task.
I don't know what is going wrong; if I execute the command on the server it works without any errors.
-bash-4.1$ ant -q -f httpdocs/build.xml cpparam
BUILD SUCCESSFUL
Total time: 0 seconds
In the bamboo logfile I see the following output:
24-Jul-2014 15:45:26 Starting task 'Copy the parameters dist' of type 'com.atlassian.bamboo.plugins.ant:task.builder.ant'
24-Jul-2014 15:45:26
Beginning to execute external process for build 'Deployment of 'release-7' on '*********** CI01''
... running command line:
/opt/ant-1.8/bin/ant -f /var/www/vhosts/***********/httpdocs/build.xml -q cpparam
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865
... using extra environment variables:
JAVA_HOME=/opt/jdk-7
bamboo_planRepository_type=bb
bamboo_shortPlanName=CI Build
bamboo_planName=*********** - CI Build
bamboo_planKey=***********
bamboo_planRepository_revision=***********
bamboo_buildResultKey=***********-CB-18
bamboo_planRepository_1_revision=***********
ANT_HOME=/opt/ant-1.8
bamboo_planRepository_1_type=bb
bamboo_planRepository_1_branchName=development
bamboo_planRepository_1_name=Bitbucket
bamboo_test=test
bamboo_buildNumber=18
bamboo_planRepository_name=Bitbucket
bamboo_shortPlanKey=CB
bamboo_planRepository_branchName=development
PATH=/opt/jdk-7/bin:/opt/bamboo-elastic-agent/bin:/opt/jdk-6/bin:/opt/maven-2.1/bin:/opt/maven-1.0.2/bin:/opt/ant-1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/bin:/bin
24-Jul-2014 15:45:26 Failing task since return code of [/opt/ant-1.8/bin/ant -f httpdocs/build.xml cpparam] was -1 while expected 0
24-Jul-2014 15:45:26 Finished task 'Copy the parameters dist'
24-Jul-2014 15:45:26 Finalising the build...
24-Jul-2014 15:45:26 Stopping timer.
Does anyone have an idea how I can fix this?
In the build plan everything works like a charm.
Thanks in advance!
EDIT:
If I run the ant command directly on the server with -verbose
-bash-4.1$ ant -f httpdocs/build.xml -verbose cpparam
Apache Ant version 1.7.1 compiled on August 24 2010
Buildfile: httpdocs/build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
Detected OS: Linux
parsing buildfile /var/www/vhosts/test/httpdocs/build.xml with URI = file:/var/www/vhosts/test/httpdocs/build.xml
Project base dir set to: /var/www/vhosts/test/httpdocs
Build sequence for target(s) `cpparam' is [cpparam]
Complete build sequence is [cpparam, cache, logs, lint, assets, clean, fixtures, dbupdate, prepare, phpunit, dlcomposer, behat, build, assetic, behat:chrome, ]
cpparam:
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
[copy] Copying 1 file to /var/www/vhosts/test/httpdocs/app/config
[copy] Copying /var/www/vhosts/test/httpdocs/app/config/parameters.yml.dist to /var/www/vhosts/test/httpdocs/app/config/parameters.yml
BUILD SUCCESSFUL
Total time: 0 seconds
The complete bamboo deployment log file with the -verbose
simple 31-Jul-2014 09:17:20 Build Deployment of 'release-7' on '**** CI01' started building on agent Elastic Agent on i-9beb61db
simple 31-Jul-2014 09:17:20 Build working directory is /home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865
simple 31-Jul-2014 09:17:20 Executing build Deployment of 'release-7' on '**** CI01'
simple 31-Jul-2014 09:17:20 Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
simple 31-Jul-2014 09:17:20 Cleaning working directory '/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865'
simple 31-Jul-2014 09:17:20 Finished task 'Clean working directory task' with result: Success
simple 31-Jul-2014 09:17:20 Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
simple 31-Jul-2014 09:17:20 Preparing to download plan result ****-CB-18 artifact: Shared artifact: [Symfony2 tarball], pattern: [sf2.tar.gz]
simple 31-Jul-2014 09:18:21 Artifact [Symfony2 tarball] downloaded successfully in 61s to working directory
simple 31-Jul-2014 09:18:21 Finished task 'Download release contents' with result: Success
simple 31-Jul-2014 09:18:21 Starting task 'SCP the tarball to his location' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
simple 31-Jul-2014 09:18:25 Connecting to ci01.****-ops.net on port: 22
simple 31-Jul-2014 09:18:26 Uploading '/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865/sf2.tar.gz' to '/var/www/vhosts/niko-oqt.ci01.****ci.be/releases'...
simple 31-Jul-2014 09:18:55 '/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865/sf2.tar.gz' was uploaded successfully.
simple 31-Jul-2014 09:18:55 Finished task 'SCP the tarball to his location' with result: Success
command 31-Jul-2014 09:18:56 Substituting variable: ${bamboo.deploy.release} with release-7
simple 31-Jul-2014 09:18:56 Starting task 'Extract tarball' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
simple 31-Jul-2014 09:18:56 Connecting to ci01.****-ops.net on port: 22
simple 31-Jul-2014 09:18:56 Executing [
simple 31-Jul-2014 09:18:56 # variables
simple 31-Jul-2014 09:18:56 DIRNAME=release-7
simple 31-Jul-2014 09:18:56
simple 31-Jul-2014 09:18:56 # Create release directory
simple 31-Jul-2014 09:18:56 mkdir -p releases/$DIRNAME
simple 31-Jul-2014 09:18:56
simple 31-Jul-2014 09:18:56 # Extract that Drupal tarball.
simple 31-Jul-2014 09:18:56 tar xzf releases/sf2.tar.gz -C releases/$DIRNAME
simple 31-Jul-2014 09:18:56
simple 31-Jul-2014 09:18:56 # Remove the tarball
simple 31-Jul-2014 09:18:56 rm -f releases/sf2.tar.gz
simple 31-Jul-2014 09:18:56 ]
simple 31-Jul-2014 09:19:03 [
simple 31-Jul-2014 09:19:03 # variables
simple 31-Jul-2014 09:19:03 DIRNAME=release-7
simple 31-Jul-2014 09:19:03
simple 31-Jul-2014 09:19:03 # Create release directory
simple 31-Jul-2014 09:19:03 mkdir -p releases/$DIRNAME
simple 31-Jul-2014 09:19:03
simple 31-Jul-2014 09:19:03 # Extract that sf tarball.
simple 31-Jul-2014 09:19:03 tar xzf releases/sf2.tar.gz -C releases/$DIRNAME
simple 31-Jul-2014 09:19:03
simple 31-Jul-2014 09:19:03 # Remove the tarball
simple 31-Jul-2014 09:19:03 rm -f releases/sf2.tar.gz
simple 31-Jul-2014 09:19:03 ] has finished.
simple 31-Jul-2014 09:19:03 Result: exit code = 0
simple 31-Jul-2014 09:19:03 Finished task 'Extract tarball' with result: Success
command 31-Jul-2014 09:19:03 Substituting variable: ${bamboo.deploy.release} with release-7
simple 31-Jul-2014 09:19:03 Starting task 'Add links' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
simple 31-Jul-2014 09:19:03 Connecting to ci01.****-ops.net on port: 22
simple 31-Jul-2014 09:19:04 Executing [
simple 31-Jul-2014 09:19:04 # variables
simple 31-Jul-2014 09:19:04 DIRNAME=release-7
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # remove the current http root link
simple 31-Jul-2014 09:19:04 rm -f httpdocs
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # Link the release to the http root.
simple 31-Jul-2014 09:19:04 ln -s releases/$DIRNAME/www httpdocs
simple 31-Jul-2014 09:19:04 ]
simple 31-Jul-2014 09:19:04 [
simple 31-Jul-2014 09:19:04 # variables
simple 31-Jul-2014 09:19:04 DIRNAME=release-7
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # remove the current http root link
simple 31-Jul-2014 09:19:04 rm -f httpdocs
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 # Link the release to the http root.
simple 31-Jul-2014 09:19:04 ln -s releases/$DIRNAME/www httpdocs
simple 31-Jul-2014 09:19:04
simple 31-Jul-2014 09:19:04 ] has finished.
simple 31-Jul-2014 09:19:04 Result: exit code = 0
simple 31-Jul-2014 09:19:04 Finished task 'Add links' with result: Success
simple 31-Jul-2014 09:19:04 Starting task 'Copy the parameters dist' of type 'com.atlassian.bamboo.plugins.ant:task.builder.ant'
command 31-Jul-2014 09:19:05 Beginning to execute external process for build 'Deployment of 'release-7' on '**** CI01''\n ... running command line: \n/opt/ant-1.8/bin/ant -f httpdocs/build.xml -verbose cpparam\n ... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865/var/www/vhosts/niko-oqt.ci01.****ci.be\n ... using extra environment variables: \nbamboo_deploy_environment=**** CI01\nbamboo_capability_system_builder_grailsBuilder_Grails_1_3=/opt/grails-1.3\nbamboo_capability_system_jdk_JDK_1_6=/opt/jdk-6\nbamboo_capability_system_builder_grailsBuilder_Grails_1_2=/opt/grails-1.2\nbamboo_capability_system_jdk_JDK_1_7=/opt/jdk-7\nJAVA_HOME=/opt/jdk-7\nbamboo_capability_system_builder_command_Drupal_remove_development_files=/opt/****-scripts/drupal/remove_development_files.sh\nbamboo_planRepository_type=bb\nbamboo_shortPlanName=CI Build\nbamboo_planKey=****-CB\nbamboo_capability_system_builder_command_****_Bitbucket_checkout=/opt/****-scripts/bitbucket_checkout.sh\nbamboo_capability_system_jdk_JDK_1_5=/opt/jdk-5\nbamboo_capability_system_builder_command_Compass=/usr/bin/compass\nbamboo_capability_system_builder_node_Node_js_0_10=/opt/node-0.10/bin/node\nbamboo_planRepository_1_branchName=development\nbamboo_deploy_release=release-7\nbamboo_shortPlanKey=CB\nbamboo_build_working_directory=/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865\nbamboo_capability_system_builder_mvn3_Maven_3_0=/opt/maven-3.0\nbamboo_capability_system_builder_command_Symfony2_remove_development_files=/opt/****-scripts/symfony/remove_development_files.sh\nbamboo_capability_system_builder_command_Drupal_coder_sniffer=/opt/****-scripts/drupal/php_codesniffer_drupal.sh\nbamboo_planName=Niko - OQT - CI Build\nbamboo_capability_system_builder_phpunit_PHPUnit_3_4=/usr/bin/phpunit-3.4\nbamboo_planRepository_revision=42de29f040d3066afbc1596fc4caefd69aaa5540\nbamboo_capability_system_builder_phpunit_PHPUnit_3_7=/usr/bin/phpunit-3.7\nbamboo_buildResultKey=****-CB-18\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_capability_system_builder_mvn2_Maven_2_1=/opt/maven-2.1\nbamboo_capability_system_builder_mvn2_Maven_2_2=/opt/maven-2.2\nbamboo_test=test\nbamboo_working_directory=/home/bamboo/bamboo-agent-home/xml-data/build-dir/26050561-26148865\nbamboo_deploy_release_previous=release-7\nbamboo_capability_system_builder_mvn2_Maven_2_0=/opt/maven-2.0\nbamboo_agentWorkingDirectory=/home/bamboo/bamboo-agent-home/xml-data/build-dir\nbamboo_capability_system_builder_ant_Ant_1_8=/opt/ant-1.8\nbamboo_capability_system_builder_command_Drush=/usr/bin/drush\nbamboo_resultsUrl=https://****.atlassian.net/builds/deploy/viewDeploymentResult.action?deploymentResultId=26935324\nbamboo_deploy_rollback=false\nbamboo_planRepository_1_revision=42de29f040d3066afbc1596fc4caefd69aaa5540\nbamboo_ManualBuildTriggerReason_userName=evert.vancauwenberg\nbamboo_planRepository_1_type=bb\nbamboo_planRepository_1_name=Bitbucket\nbamboo_capability_system_hg_executable=/usr/bin/hg\nbamboo_planRepository_branchName=development\nbamboo_capability_system_builder_command_Check_for_dpm=/opt/****-scripts/drupal/check_for_dpm.sh\nbamboo_capability_system_builder_mvn2_Maven_2=/opt/maven-2.2\nbamboo_deploy_version_previous=release-7\nbamboo_agentId=26574851\nANT_HOME=/opt/ant-1.8\nbamboo_deploy_version=release-7\nbamboo_planRepository_name=Bitbucket\nbamboo_buildNumber=18\nbamboo_capability_system_builder_grailsBuilder_Grails_2_0=/opt/grails-2.0\nbamboo_capability_system_builder_grailsBuilder_Grails_2_1=/opt/grails-2.1\nbamboo_capability_system_builder_grailsBuilder_Grails_2_2=/opt/grails-2.2\nbamboo_deploy_project=Deployment for *** - OQT\nPATH=/opt/jdk-7/bin:/opt/bamboo-elastic-agent/bin:/opt/jdk-6/bin:/opt/maven-2.1/bin:/opt/maven-1.0.2/bin:/opt/ant-1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/bin:/bin\n
simple 31-Jul-2014 09:19:05 Failing task since return code of [/opt/ant-1.8/bin/ant -f httpdocs/build.xml -verbose cpparam] was -1 while expected 0
simple 31-Jul-2014 09:19:05 Finished task 'Copy the parameters dist' with result: Failed
simple 31-Jul-2014 09:19:05 Finalising the build...
simple 31-Jul-2014 09:19:05 Stopping timer.
simple 31-Jul-2014 09:19:05 Build 26050561-26148865-26935324 completed.
simple 31-Jul-2014 09:19:05 Finished processing deployment result Deployment of 'release-7' on '**** CI01'