Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom script not executed with azure-vm-linux-script-deploy

nikesh July 22, 2019 edited

My repo is structured like this:

Repo header

  | - src/

  |-bitbucket-pipelines.yml

  |- my script.sh

 

I am trying to copy artifacts generated in my target/ folder to azure vm using azure-vm-linux-script-deploy.

myscript.sh looks like this.

#!/bin/bash
while getopts p option
do
case "${option}"
in
p) ARTIFACT=${OPTARG};;
esac
done
cd $HOME
sudo mkdir folder1
sudo mkdir folder1/folder2
cp ${ARTIFACT} folder1/folder2

 

bitbucket-pipelines.yml

image: maven:3.3.9

pipelines:
custom:
default:
- step:
caches:
- maven
name: build
script: # Modify the commands below to build your repository.
- mvn package
- pipe: microsoft/azure-vm-linux-script-deploy:1.0.1
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP
AZURE_VM_NAME: $AZURE_VM_NAME
AZURE_EXTENSION_COMMAND: './myscript.sh -p target/myjar-1.0.jar'
AZURE_EXTENSION_FILES: 'myscript.sh,target/myjar-1.0.jar'
AZURE_FORCE_UPDATE: 'true'
AZURE_NO_WAIT: 'true'
AZURE_CLEANUP: 'true'
DEBUG: 'true'

 

There are no errors in pipelines log. New folders are not created in $HOME dir. 

Any pointers to mistake will be helpful.

Edit: In the pipeline logs I saw following error:

"extensions": [
{
"name": "CustomScript",
"type": "Microsoft.Azure.Extensions.CustomScript",
"typeHandlerVersion": "2.0.7",
"statuses": [
{
"code": "ProvisioningState/failed/0",
"level": "Error",
"displayStatus": "Provisioning failed",
"message": "Enable failed: processing file downloads failed: failed to download file[0]: failed to download file: http request failed: Get [REDACTED] dial tcp: lookup bbpipe1dsome_number.blob.core.windows.net: no such host"
}
]
},

 

 

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2019

Hi @nikesh ,

please follow recommendations from the Microsoft Team:


If you’d like help with this pipe, or you have an issue or feature request, please contact us:

Option 1 - Azure portal: https://portal.azure.com

  • Go to Help+Support (at the left navigation)
  • Click “+New support request”
  • Choose Issue Type “Technical”
  • Choose Services “All Services”
  • Under “Developer Tools” choose “Azure DevOps Services”
  • Problem Type, choose “Pipelines”

Option 2 - Azure DevOps: https://azure.microsoft.com/en-us/support/create-ticket/

  • Choose Azure DevOps Support ticket ticket
  • Choose the “Create an incident” button
  • The screen will be pre populated with “Developer Tools” “Azure DevOps”.
  • Choose Pipelines as the category and follow the wizard.

If you’re reporting an issue, please include:

  • the version of the pipe
  • relevant logs and error messages
  • steps to reproduce

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events