Comments (2)
@astream2018 It looks like the create-upload-deploy.sh file here isn't correctly formatted in your RHEL image because it's trying to execute the carriage return lines '\r'.
Azure Pipelines agent pool doesn't offer a standard RHEL image: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml and from what I can tell, the task I'm using (Bash@3) doesn't get tested against anything else. The task itself is open source though: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/bash?view=azure-devops
Could you run a test with an inline Bash task rather than a filepath and see if that makes a difference? Something simple like this?
- task: Bash@3
inputs:
targetType: 'inline'
script: |
if [ -z "${CONNECT_SERVER}" ] ; then
echo "The CONNECT_SERVER environment variable is not defined. It defines"
echo "the base URL of your RStudio Connect instance."
echo
echo " export CONNECT_SERVER='http://connect.company.com/'"
exit 1
fi
echo "${CONNECT_SERVER}"
from azure-devops-shiny-template.
Hi @kellobri ,
Thank you for giving insides how to fix this. We had a slide different approach. see our yml file below.
`# RStudio Connect Deployment Pipeline:
1. Create, Upload, & Deploy Content
2. Set the Vanity URL
3. Update the Access Control List
trigger:
- main
pool: 'RStudio'
variables:
- name: CONTENT_DIRECTORY
value: app-dir - name: VANITY_NAME
value: azure-devops-app
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: |
dos2unix create-upload-deploy.sh
- task: Bash@3
displayName: 'Create Upload Deploy'
inputs:
filePath: 'create-upload-deploy.sh'
arguments: 'Azure DevOps Deployment Demo App'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY) - task: Bash@3
displayName: 'Set Vanity URL'
inputs:
filePath: 'set-vanity-url.sh'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY) - task: Bash@3
displayName: 'Update Access Control List'
inputs:
filePath: 'update-acl.sh'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY)`
It would be also handy to have the users which has done the last commit as the collaborator.
Thanks in advance.
from azure-devops-shiny-template.
Related Issues (4)
- Function to add a collaborator HOT 1
- Set 'run as user' HOT 1
- use groupname to set the acl HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-devops-shiny-template.