Skip to content

Commit

Permalink
Add GetPackageInstallNotes function
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Jan 5, 2021
1 parent 640903b commit 5c7d1da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,17 @@ function GetExistingPackageVersions ($PackageName, $GroupId=$null)
}
}

function SetPackageVersion ($PackageName, $Version, $ServiceName, $ReleaseDate, $BuildType=$null, $GroupName=$null)
function SetPackageVersion ($PackageName, $Version, $ServiceDirectory, $ReleaseDate, $BuildType=$null, $GroupId=$null)
{
if($null -eq $ReleaseDate)
{
$ReleaseDate = Get-Date -Format "yyyy-MM-dd"
}
pip install -r "$EngDir/versioning/requirements.txt" -q -I
python "$EngDir/versioning/version_set.py" --package-name $PackageName --new-version $Version --service $ServiceName --release-date $ReleaseDate
python "$EngDir/versioning/version_set.py" --package-name $PackageName --new-version $Version --service $ServiceDirectory --release-date $ReleaseDate
}

function GetPackageInstallNotes ($package, $version) {
return npm install $package
function GetPackageInstallNote ($PackageName, $Version, $GroupId=$null)
{
return "pip install ${PackageName}==${Version}"
}
2 changes: 1 addition & 1 deletion sdk/template/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: template
TestPipeline: true
TestPipeline: false
Artifacts:
- name: azure_template
safeName: azuretemplate

0 comments on commit 5c7d1da

Please sign in to comment.