@protacon/muster-booking-frontend 1.27.1 → 1.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Jenkinsfile CHANGED
@@ -2,7 +2,7 @@ library 'jenkins-ptcs-library@5.0.0'
2
2
 
3
3
  podTemplate(label: pod.label,
4
4
  containers: pod.templates + [ // This adds all depencies for jenkins-ptcs-library methods to function correctly.
5
- containerTemplate(name: 'node', image: 'node:10', ttyEnabled: true, command: '/bin/sh -c', args: 'cat'),
5
+ containerTemplate(name: 'node', image: 'node:22', ttyEnabled: true, command: '/bin/sh -c', args: 'cat'),
6
6
  ]
7
7
  ) {
8
8
  node(pod.label) {
@@ -5,12 +5,12 @@ variables:
5
5
  - group: smuster-secrets
6
6
 
7
7
  pool:
8
- vmImage: 'windows-2022'
8
+ vmImage: "ubuntu-22.04"
9
9
 
10
10
  steps:
11
11
  - task: NodeTool@0
12
12
  inputs:
13
- versionSpec: '14.x'
13
+ versionSpec: "22.x"
14
14
  - script: npm ci
15
15
  displayName: Npm install
16
16
  - script: npm run build-web
@@ -20,22 +20,21 @@ steps:
20
20
  - task: ArchiveFiles@2
21
21
  displayName: Archive files
22
22
  inputs:
23
- rootFolderOrFile: './dist'
23
+ rootFolderOrFile: "./dist"
24
24
  includeRootFolder: false
25
- archiveType: 'zip'
26
- archiveFile: .\buildoutput\smuster-carspect-booking-frontend.$(Build.SourceVersion).zip
25
+ archiveType: "zip"
26
+ archiveFile: ./buildoutput/smuster-carspect-booking-frontend.$(Build.SourceVersion).zip
27
27
  replaceExistingArchive: true
28
28
  verbose: true
29
29
  quiet: true
30
- - powershell: Copy-Item -Path .\buildoutput\smuster-carspect-booking-frontend.$(Build.SourceVersion).zip -Destination .\buildoutput\smuster-carspect-booking-frontend.$(Build.SourceBranchName).latest.zip -Force
30
+ - powershell: Copy-Item -Path ./buildoutput/smuster-carspect-booking-frontend.$(Build.SourceVersion).zip -Destination ./buildoutput/smuster-carspect-booking-frontend.$(Build.SourceBranchName).latest.zip -Force
31
31
  displayName: Copy items
32
32
  name: CreateLatestPackageIfNeeded
33
33
  condition: and(succeeded(), not(eq(variables['Build.SourceBranchName'], 'merge')))
34
- - task: AzureFileCopy@3
35
- displayName: Push artifacts to storage
34
+ - task: AzureCLI@2
35
+ displayName: Upload to Azure Blob Storage
36
36
  inputs:
37
- SourcePath: .\buildoutput\
38
37
  azureSubscription: protaconmuster
39
- Destination: 'AzureBlob'
40
- storage: $(artifact-storage)
41
- ContainerName: 'smuster-carspect-booking-frontend'
38
+ scriptType: "pscore"
39
+ scriptLocation: "inlineScript"
40
+ inlineScript: "az storage blob upload-batch --destination smuster-carspect-booking-frontend --account-name $(artifact-storage) --source ./buildoutput/ --overwrite true"