Skip to content

Commit

Permalink
Fix pipeline (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 authored Jan 3, 2025
1 parent 8b80ee3 commit fc0703b
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions devops-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,58 +27,58 @@ steps:
displayName: "Copy package.json for cache key"
- task: Cache@2
inputs:
key: 'npm-cache-custom-widgets | $(Build.SourcesDirectory)/Temp/package.json'
key: "npm-cache-custom-widgets | $(Build.SourcesDirectory)/Temp/package.json"
path: $(Build.SourcesDirectory)/node_modules
cacheHitVar: NPM_CACHE_RESTORED
displayName: Cache NPM

- task: Npm@1
displayName: 'NPM install'
displayName: "NPM install"
inputs:
command: install
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')

- task: DownloadBuildArtifacts@0
inputs:
buildType: 'specific'
project: 'af2804d2-859a-4705-9ef5-cdf46d1d5d4f'
pipeline: '56'
buildType: "specific"
project: "af2804d2-859a-4705-9ef5-cdf46d1d5d4f"
pipeline: "56"
specificBuildWithTriggering: true
buildVersionToDownload: 'latest'
downloadType: 'single'
artifactName: 'SurveyJSLibraryBuildCoreAngularJquery'
downloadPath: '$(System.ArtifactsDirectory)'
buildVersionToDownload: "latest"
downloadType: "single"
artifactName: "SurveyJSLibraryBuildCore"
downloadPath: "$(System.ArtifactsDirectory)"

- task: CopyFiles@2
inputs:
SourceFolder: "$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCoreAngularJquery/packages/survey-core"
SourceFolder: "$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCore/packages/survey-core"
Contents: "**"
TargetFolder: "$(Build.Repository.LocalPath)/node_modules/survey-core"
OverWrite: true

# npm run release with version
# npm run release with version
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCoreAngularJquery/'
Contents: 'version.txt'
TargetFolder: '$(Build.SourcesDirectory)/'
SourceFolder: "$(System.ArtifactsDirectory)/SurveyJSLibraryBuildCore/"
Contents: "version.txt"
TargetFolder: "$(Build.SourcesDirectory)/"
OverWrite: true
displayName: 'Copy Build Artifact - SurveyJSVersion File'
displayName: "Copy Build Artifact - SurveyJSVersion File"

- powershell: |
$version = Get-Content $(Build.SourcesDirectory)/version.txt
Write-Host "##vso[task.setvariable variable=SurveyJSVersion;]$version"
displayName: 'setup SurveyJSVersion variable from SurveyJSVersionFile'
displayName: "setup SurveyJSVersion variable from SurveyJSVersionFile"
- powershell: |
$env:GIT_REDIRECT_STDERR = '2>&1'
git config --global user.email "kurmanov.work@gmail.com"
git config --global user.name "dmitrykurmanov"
npm run release -- --release-as $(SurveyJSVersion)
displayName: 'npm run release specific version'
#####################################################
displayName: "npm run release specific version"
#####################################################

- script: |
npm run build
displayName: "build"
Expand All @@ -89,11 +89,11 @@ steps:
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.Repository.LocalPath)/package'
SourceFolder: "$(Build.Repository.LocalPath)/package"
targetFolder: $(Build.ArtifactStagingDirectory)/SurveyJSWidgetsBuild/packages/survey-widgets

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/SurveyJSWidgetsBuild/'
ArtifactName: 'SurveyJSWidgetsBuild'
publishLocation: 'Container'
PathtoPublish: "$(Build.ArtifactStagingDirectory)/SurveyJSWidgetsBuild/"
ArtifactName: "SurveyJSWidgetsBuild"
publishLocation: "Container"

0 comments on commit fc0703b

Please sign in to comment.