Difference between revisions of "Azure Pipelines: AWSShellScript@1"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
virtualenv venv | virtualenv venv | ||
venv/bin/pip install -r requirements.txt | venv/bin/pip install -r requirements.txt | ||
− | venv/bin/python | + | venv/bin/python your_python_script.py \ |
--environment "${{ parameters.awsAccountName }}" \ | --environment "${{ parameters.awsAccountName }}" \ | ||
--service "${{ parameters.sphereServiceName }}" | --service "${{ parameters.sphereServiceName }}" | ||
Line 23: | Line 23: | ||
failOnStandardError: false | failOnStandardError: false | ||
workingDirectory: "$(System.DefaultWorkingDirectory)" | workingDirectory: "$(System.DefaultWorkingDirectory)" | ||
− | |||
− | |||
− | |||
== Related == | == Related == |
Revision as of 12:11, 22 March 2022
/home/vsts/work/_temp/awsshellscript_1568.sh: line 2: your_python_script.py: command not found
Example
- task: AWSShellScript@1 displayName: Name for you task condition: always() inputs: awsCredentials: "$Template:Parameters.awsCredentials" regionName: "$Template:Parameters.awsRegion" scriptType: inline inlineScript: | ls -lah pip3 install virtualenv virtualenv venv venv/bin/pip install -r requirements.txt venv/bin/python your_python_script.py \ --environment "$Template:Parameters.awsAccountName" \ --service "$Template:Parameters.sphereServiceName" disableAutoCwd: true failOnStandardError: false workingDirectory: "$(System.DefaultWorkingDirectory)"
Related
inlineScript: workingDirectory:
See also
Azure Pipelines: task:
- Azure Pipelines:
az pipelines
,trigger:, stages:
,variables:, parameters:,
inputs:
,group:
,template:
,jobs:
,job:
,steps:
,dependsOn:
,task:
,condition:
,resources:
,pool:
,stage:
,extends:
,deployment:, scriptType:, inlineScript:, repositories:, pr:, repository:, type:
, Default Azure Pipeline, Azure Pipeline Library, Azure Pipeline Job full syntax
Advertising: