From 3a38f8d77f7b2d7d9c1b2fb5b9f120048be7499a Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 04:32:39 +0000 Subject: [PATCH 01/16] Update azure-pipelines.yml for Azure Pipelines Added first archive test --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 012a4ca..30fc57b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,3 +21,25 @@ steps: npm install ionic build --prod displayName: 'npm install and build' + +# Archive files +# Compress files into .7z, .tar.gz, or .zip +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)/www/' + includeRootFolder: true + archiveType: 'tar' + archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' + replaceExistingArchive: true + verbose: true +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)/www/' + # includeRootFolder: true + archiveType: 'tar' # Options: zip, 7z, tar, wim + tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none + #archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' + #replaceExistingArchive: true + verbose: true # Optional + #quiet: # Optional + From 930d847f9c79bcb8dc60c71783bfbee711cd5b9e Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 04:33:37 +0000 Subject: [PATCH 02/16] Update azure-pipelines.yml for Azure Pipelines Added first archive test --- azure-pipelines.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 30fc57b..a56ada9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,14 +24,6 @@ steps: # Archive files # Compress files into .7z, .tar.gz, or .zip -- task: ArchiveFiles@2 - inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)/www/' - includeRootFolder: true - archiveType: 'tar' - archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' - replaceExistingArchive: true - verbose: true - task: ArchiveFiles@2 inputs: rootFolderOrFile: '$(Build.BinariesDirectory)/www/' From bb8c085d64d5bc0b565aa836e6d5952943cf08b8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 04:38:22 +0000 Subject: [PATCH 03/16] Update azure-pipelines.yml for Azure Pipelines Trying to test archiving --- azure-pipelines.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a56ada9..926a048 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,11 +22,17 @@ steps: ionic build --prod displayName: 'npm install and build' +- task: CmdLine@2 + inputs: + script: | + pwd + ls -la + # Archive files # Compress files into .7z, .tar.gz, or .zip - task: ArchiveFiles@2 inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)/www/' + rootFolderOrFile: '$(Build.BinariesDirectory)' # includeRootFolder: true archiveType: 'tar' # Options: zip, 7z, tar, wim tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none From f888173447b3b3a66d3fd693d77d0d8248428992 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 04:46:40 +0000 Subject: [PATCH 04/16] Update azure-pipelines.yml for Azure Pipelines retrying to archive just www file --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 926a048..65c72c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,11 +32,11 @@ steps: # Compress files into .7z, .tar.gz, or .zip - task: ArchiveFiles@2 inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)' + rootFolderOrFile: '$(Build.BinariesDirectory)/www' # includeRootFolder: true archiveType: 'tar' # Options: zip, 7z, tar, wim tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none - #archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' + archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' #replaceExistingArchive: true verbose: true # Optional #quiet: # Optional From a17207427bc8f77180c71b3160b70f3e59c31806 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 04:52:06 +0000 Subject: [PATCH 05/16] Update azure-pipelines.yml for Azure Pipelines Echo (Build.BinariesDirectory) --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 65c72c1..1f0ea7e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,6 +27,7 @@ steps: script: | pwd ls -la + echo $(Build.BinariesDirectory) # Archive files # Compress files into .7z, .tar.gz, or .zip From cd6f331be18e6c7dc831769e066bda91e3795ccf Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 05:00:27 +0000 Subject: [PATCH 06/16] Update azure-pipelines.yml for Azure Pipelines Fixed location of www i hope --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1f0ea7e..4984cfd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ steps: # Compress files into .7z, .tar.gz, or .zip - task: ArchiveFiles@2 inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)/www' + rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/www' # includeRootFolder: true archiveType: 'tar' # Options: zip, 7z, tar, wim tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none From e046468bb2eb789e3bb09a0f1f7387edd6ef1c09 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 05:07:27 +0000 Subject: [PATCH 07/16] Update azure-pipelines.yml for Azure Pipelines List files --- azure-pipelines.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4984cfd..4ffe840 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,19 +26,22 @@ steps: inputs: script: | pwd - ls -la echo $(Build.BinariesDirectory) + ls -la $(Build.BinariesDirectory) + echo $(Build.ArtifactStagingDirectory) + ls -la$(Build.ArtifactStagingDirectory) + ls -R ~ -# Archive files -# Compress files into .7z, .tar.gz, or .zip -- task: ArchiveFiles@2 - inputs: - rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/www' - # includeRootFolder: true - archiveType: 'tar' # Options: zip, 7z, tar, wim - tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none - archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' - #replaceExistingArchive: true - verbose: true # Optional - #quiet: # Optional +# # Archive files +# # Compress files into .7z, .tar.gz, or .zip +# - task: ArchiveFiles@2 +# inputs: +# rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/www' +# # includeRootFolder: true +# archiveType: 'tar' # Options: zip, 7z, tar, wim +# tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none +# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' +# #replaceExistingArchive: true +# verbose: true # Optional +# #quiet: # Optional From f9b55c7f42c48d5db038a58b45517e64bdd1aa8f Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 05:32:22 +0000 Subject: [PATCH 08/16] Update azure-pipelines.yml for Azure Pipelines Added first step at archiving --- azure-pipelines.yml | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4ffe840..993c3e2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,26 +22,18 @@ steps: ionic build --prod displayName: 'npm install and build' -- task: CmdLine@2 - inputs: - script: | - pwd - echo $(Build.BinariesDirectory) - ls -la $(Build.BinariesDirectory) - echo $(Build.ArtifactStagingDirectory) - ls -la$(Build.ArtifactStagingDirectory) - ls -R ~ - # # Archive files -# # Compress files into .7z, .tar.gz, or .zip -# - task: ArchiveFiles@2 -# inputs: -# rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/www' -# # includeRootFolder: true -# archiveType: 'tar' # Options: zip, 7z, tar, wim -# tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none -# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' -# #replaceExistingArchive: true -# verbose: true # Optional -# #quiet: # Optional +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)' + includeRootFolder: true + archiveType: 'tar' + archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' + replaceExistingArchive: true + verbose: true +- task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Build.ArtifactStagingDirectory)' + artifact: 'target-www.tar.gz' + publishLocation: 'pipeline' \ No newline at end of file From d3d992fa3cb53182545224bf6ee6e0f2027ecb75 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 05:56:01 +0000 Subject: [PATCH 09/16] Update azure-pipelines.yml for Azure Pipelines second shot --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 993c3e2..81a478f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,8 +32,8 @@ steps: replaceExistingArchive: true verbose: true -- task: PublishPipelineArtifact@1 +- task: PublishBuildArtifacts@1 inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' - artifact: 'target-www.tar.gz' - publishLocation: 'pipeline' \ No newline at end of file + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'Front' + publishLocation: 'Container' \ No newline at end of file From 70c4a4dd33b48bdce7130b6ed7613a37ae10fb05 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 06:08:08 +0000 Subject: [PATCH 10/16] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 48 +++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 81a478f..a7dc8f9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,25 +15,31 @@ steps: versionSpec: '12.x' displayName: 'Install Node.js' -- script: | - # npm install -g @angular/cli - npm install -g @ionic/cli - npm install - ionic build --prod - displayName: 'npm install and build' - -# # Archive files -- task: ArchiveFiles@2 +- task: CmdLine@2 inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)' - includeRootFolder: true - archiveType: 'tar' - archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' - replaceExistingArchive: true - verbose: true - -- task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: 'Front' - publishLocation: 'Container' \ No newline at end of file + script: | + echo $(Build.Repository.LocalPath) + $(Build.Repository.LocalPath) + + +# - script: | +# npm install -g @ionic/cli +# npm install +# ionic build --prod +# displayName: 'npm install and build' + +# # # Archive files +# - task: ArchiveFiles@2 +# inputs: +# rootFolderOrFile: '$(Build.BinariesDirectory)' +# includeRootFolder: true +# archiveType: 'tar' +# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' +# replaceExistingArchive: true +# verbose: true + +# - task: PublishBuildArtifacts@1 +# inputs: +# PathtoPublish: '$(Build.ArtifactStagingDirectory)' +# ArtifactName: 'Front' +# publishLocation: 'Container' \ No newline at end of file From 9a383d74294724d0a5d97a7d387b9d215d5f30ee Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 06:09:13 +0000 Subject: [PATCH 11/16] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a7dc8f9..5090378 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,16 +10,16 @@ pool: vmImage: 'ubuntu-latest' steps: -- task: NodeTool@0 - inputs: - versionSpec: '12.x' - displayName: 'Install Node.js' +# - task: NodeTool@0 +# inputs: +# versionSpec: '12.x' +# displayName: 'Install Node.js' - task: CmdLine@2 inputs: script: | echo $(Build.Repository.LocalPath) - $(Build.Repository.LocalPath) + ls -la $(Build.Repository.LocalPath) # - script: | From 47205364287ee9c016d75ff56a6167db470e9906 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 06:11:02 +0000 Subject: [PATCH 12/16] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 51 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5090378..560496d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,10 +10,16 @@ pool: vmImage: 'ubuntu-latest' steps: -# - task: NodeTool@0 -# inputs: -# versionSpec: '12.x' -# displayName: 'Install Node.js' +- task: NodeTool@0 + inputs: + versionSpec: '12.x' + displayName: 'Install Node.js' + +- script: | + npm install -g @ionic/cli + npm install + ionic build --prod + displayName: 'npm install and build' - task: CmdLine@2 inputs: @@ -21,25 +27,18 @@ steps: echo $(Build.Repository.LocalPath) ls -la $(Build.Repository.LocalPath) - -# - script: | -# npm install -g @ionic/cli -# npm install -# ionic build --prod -# displayName: 'npm install and build' - -# # # Archive files -# - task: ArchiveFiles@2 -# inputs: -# rootFolderOrFile: '$(Build.BinariesDirectory)' -# includeRootFolder: true -# archiveType: 'tar' -# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' -# replaceExistingArchive: true -# verbose: true - -# - task: PublishBuildArtifacts@1 -# inputs: -# PathtoPublish: '$(Build.ArtifactStagingDirectory)' -# ArtifactName: 'Front' -# publishLocation: 'Container' \ No newline at end of file +# # Archive files +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(Build.Repository.LocalPath)/www' + includeRootFolder: true + archiveType: 'tar' + archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' + replaceExistingArchive: true + verbose: true + +- task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Pipeline.Workspace)' + artifact: 'FrontEnd' + publishLocation: 'pipeline' \ No newline at end of file From 9fa44a3b3d70eeb251ac8a852a580fbf3ebe7ccc Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 06:29:05 +0000 Subject: [PATCH 13/16] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 560496d..1bbdbd9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,6 +39,7 @@ steps: - task: PublishPipelineArtifact@1 inputs: - targetPath: '$(Pipeline.Workspace)' + # targetPath: '$(Pipeline.Workspace)' + targetPath: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' artifact: 'FrontEnd' publishLocation: 'pipeline' \ No newline at end of file From 23743bc49c40d7d147a371d7da582e69b2684125 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 07:25:52 +0000 Subject: [PATCH 14/16] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1bbdbd9..3daeffb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,6 +37,15 @@ steps: replaceExistingArchive: true verbose: true +steps: +- task: CopyFilesOverSSH@0 + displayName: 'Securely copy files to the remote machine' + inputs: + sshEndpoint: GoogleServer + sourceFolder: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' + targetFolder: /var/lib/app/pipeline/ + failOnEmptySource: true + - task: PublishPipelineArtifact@1 inputs: # targetPath: '$(Pipeline.Workspace)' From d11df9e9f064260f5854a145e35bb0f09f19d7c3 Mon Sep 17 00:00:00 2001 From: Thomas Atkins Date: Sat, 8 Feb 2020 01:29:54 -0600 Subject: [PATCH 15/16] Fixed pipline --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3daeffb..b6ba7d9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,7 +37,6 @@ steps: replaceExistingArchive: true verbose: true -steps: - task: CopyFilesOverSSH@0 displayName: 'Securely copy files to the remote machine' inputs: From 629d1052628d31dc19605e1b5dad88296c26ab5e Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 8 Feb 2020 08:04:34 +0000 Subject: [PATCH 16/16] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b6ba7d9..1bbdbd9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,14 +37,6 @@ steps: replaceExistingArchive: true verbose: true -- task: CopyFilesOverSSH@0 - displayName: 'Securely copy files to the remote machine' - inputs: - sshEndpoint: GoogleServer - sourceFolder: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz' - targetFolder: /var/lib/app/pipeline/ - failOnEmptySource: true - - task: PublishPipelineArtifact@1 inputs: # targetPath: '$(Pipeline.Workspace)'