Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions azure-data-pipeline/data_pipeline_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: CICD
pr:
branches:
include:
- master
- main
- adf_publish
trigger:
branches:
include:
- master
- main
paths:
include:
- scripts/
Expand Down Expand Up @@ -53,18 +53,26 @@ stages:
addToPath: true
architecture: 'x64'
displayName: 'Use Python3'
# Need to install DevOps for Azure Databricks extension
- task: configuredatabricks@0
inputs:
url: '$(DATABRICKS_URL)'
token: '$(databricks-token)'
displayName: 'Configure Databricks CLI'

# Install Databricks CLI
- script: |
curl -fsSL https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh | sh
echo "databricks version" $(databricks --version)
displayName: 'Install Databricks CLI'

- script: |
mkdir -p ~/.databricks
echo "[DEFAULT]" > ~/.databrickscfg
echo "host = $DATABRICKS_URL" >> ~/.databrickscfg
echo "token = $(databricks-token)" >> ~/.databrickscfg
databricks auth profiles
displayName: "Configure Databricks CLI"

- script: |
echo "Uploading notebooks from $(Pipeline.Workspace)/notebooks to /Shared..."
databricks workspace import-dir "$(Pipeline.Workspace)/notebooks" /Shared
displayName: "Upload Notebooks to /Shared in the Databricks cluster"

- task: deploynotebooks@0
inputs:
notebooksFolderPath: '$(Pipeline.Workspace)/notebooks'
workspaceFolder: '/Shared'
displayName: 'Deploy (copy) data processing notebook to the Databricks cluster'
- deployment: "Deploy_to_ADF"
displayName: 'Deploy to ADF'
timeoutInMinutes: 0
Expand Down
3 changes: 2 additions & 1 deletion azure-data-pipeline/data_pipeline_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ trigger:
branches:
include:
- master
- main
paths:
include:
- scripts/
Expand Down Expand Up @@ -31,4 +32,4 @@ stages:
azureSubscription: $(AZURE_RM_CONNECTION)
ScriptPath: '$(Build.SourcesDirectory)/azure-data-pipeline/scripts/Invoke-ADFPipeline.ps1'
ScriptArguments: '-ResourceGroupName $(RESOURCE_GROUP) -DataFactoryName $(DATA_FACTORY_TEST_NAME) -PipelineName $(ADF_PIPELINE_NAME)'
azurePowerShellVersion: LatestVersion
azurePowerShellVersion: LatestVersion