-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·30 lines (24 loc) · 942 Bytes
/
build.sh
File metadata and controls
executable file
·30 lines (24 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Build script for Buildstash Azure DevOps Extension
echo "Building Buildstash Azure DevOps Extension..."
# Install dependencies for the task
echo "Installing task dependencies..."
cd tasks/BuildstashUpload
npm install
cd ..
# Install tfx-cli if not already installed
if ! command -v tfx &> /dev/null; then
echo "Installing tfx-cli..."
npm install -g tfx-cli
fi
# Create the extension package
echo "Creating extension package..."
tfx extension create --manifest-globs azure-devops-extension.json
echo "Build complete! Extension package created."
echo ""
echo "To publish the extension:"
echo "1. Update the publisher in azure-devops-extension.json to your publisher ID"
echo "2. Run: tfx extension publish --manifest-globs azure-devops-extension.json --token <YOUR_PAT>"
echo ""
echo "To install locally for testing:"
echo "Run: tfx extension install --manifest-globs azure-devops-extension.json --token <YOUR_PAT>"