Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure devops onprem 2019 #506

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion azure-devops-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "team-calendar",
"publisher": "ms-devlabs",
"version": "2.0.16",
"version": "2.0.22",
"name": "Team Calendar",
"description": "Track events important to your team, view and manage days off, quickly see when sprints start and end, and more.",
"public": true,
Expand Down
8 changes: 8 additions & 0 deletions azure-pipelines-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ steps:
- script: |
npm run build
displayName: 'Compile and package'

- task: CopyFiles@2
inputs:
contents: '*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)

- publish: '$(Build.ArtifactStagingDirectory)'
artifact: drop
8 changes: 1 addition & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
# To learn more about Azure Pipelines: https://aka.ms/learn-azure-pipelines

jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: azure-pipelines-steps.yml

- job: Windows
pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-latest'
steps:
- template: azure-pipelines-steps.yml

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

{
"name": "vso-team-calendar",

"name": "vsts-teams-calendar",
"version": "2.0.0",
"description": "Track events important to your team, view and manage days off, quickly see when sprints start and end, and more.",
"keywords": [
Expand Down
8 changes: 7 additions & 1 deletion src/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,13 @@ class ExtensionContent extends React.Component {
}

this.hostUrl = await locationService.getServiceLocation();
this.selectedTeamName = (await client.getTeam(project.id, selectedTeamId)).name;
try {
this.selectedTeamName = (await client.getTeam(project.id, selectedTeamId)).name;
} catch (error) {
console.error(`Failed to get team with ID ${selectedTeamId}: ${error}`);


}
this.freeFormEventSource.initialize(selectedTeamId, this.dataManager);
this.vsoCapacityEventSource.initialize(project.id, this.projectName, selectedTeamId, this.selectedTeamName, this.hostUrl);
this.displayCalendar.value = true;
Expand Down