Pipeline artifact issue

Omkar posam January 4, 2023

image: atlassian/default-image:2
pipelines:
branches: # Branch-specific pipelines definitions
CARD_BUZZ:
- step:
name: Build
image: mcr.microsoft.com/dotnet/core/sdk:3.1
caches:
- node
script:
- cd AdminPortal_WebAPI
- apt-get update && apt-get install -y apt-utils
- dotnet build --configuration Release -o AdminPortal_WebAPI/pipelineoutput
- cd AdminPortal_WebAPI/pipelineoutput
- apt-get update && apt-get install --yes zip
- zip -r pipelineout.zip . -i AdminPortal_WebAPI/pipelineoutput/.* *
artifacts:
paths:
- pipelineoutput/pipelineout.zip
- step:
name: Deploying the app to S3
deployment: Staging
script:
- pipe: atlassian/aws-code-deploy:0.4.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'ap-south-1'
APPLICATION_NAME: 'codedeploy_cardbuzz'
DEPLOYMENT_GROUP: 'codeploycardbuzz'
ZIP_FILE: 'pipelineoutput/pipelineout.zip'
S3_BUCKET: 'cardbuzz-backend/admin_webapi'
ACL: "public-read"
COMMAND: 'upload'

- pipe : atlassian/aws-code-deploy:0.4.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'ap-south-1'
APPLICATION_NAME: 'codedeploy_cardbuzz'
DEPLOYMENT_GROUP: 'codeploycardbuzz'
ZIP_FILE: 'pipelineoutput/pipelineout.zip'
S3_BUCKET: 'cardbuzz-backend/admin_webapi'
COMMAND: 'upload'
WAIT: 'true'
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'

 

Error-: file doesn't exist user trying to upload

2 answers

0 votes
Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2023

Hey @Omkar posam!

As I mentioned in the post you tagged me from, the documentation for pipeline artifacts here: 
https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/

says: "Artifact paths are relative to the BITBUCKET_CLONE_DIR."

I see you are creating the zip output here:

AdminPortal_WebAPI/pipelineoutput

But where you are defining the path for where the zip file is you have only selected:

pipelineoutput/pipelineout.zip

I would try:

AdminPortal_WebAPI/pipelineoutput/pipelineout.zip

And see if that allows it to find the file.

I hope that works for you!

Omkar posam January 5, 2023

Thanks @Jimmy Seddon sir, But actually I tried it already it still shows file does not exist! 

I even did pwd and took note of that path and also ls to check if the zip file is getting stored in pipelineoutput or not

 

Everything is good still.

Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2023

If that is the case I would recommend using some logging output lines to identify the full path location of the pipelineout.zip file.

A file not found error indicated that either you are providing the incorrect location.  Or that your build process failed to generate the file.  However, in the generation failure I would have expected a different error to be presented first.

Omkar posam January 5, 2023

Screenshot 2023-01-05 200433.png

Omkar posam January 5, 2023

 @Jimmy Seddon Please help me out of this , I have deadline to meet. This error is poping out for any path I give even which you specified . I checked with ls and pwd to confirm the build and zip everythings right .

Omkar posam January 5, 2023

+ umask 000

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="CARD_BUZZ" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...

+ git reset --hard bb51111f048d6eb104f2976f426bf7b22d46705d
HEAD is now at bb51111 https://bitbucket.org/giiftalldev/cardbuzz-webservices/src/bb51111f048d6eb104f2976f426bf7b22d46705d/bitbucket-pipelines.yml edited online with Bitbucket

+ git config user.name bitbucket-pipelines

+ git config user.email commits-noreply@bitbucket.org

+ git config push.default current

+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

+ git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME

+ git reflog expire --expire=all --all

+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude

+ chmod 777 $BUILD_DIR

Cache "node: node_modules": Downloading
Cache "node: node_modules": Not found

Default variables:
BITBUCKET_BRANCH
BITBUCKET_BUILD_NUMBER
BITBUCKET_CLONE_DIR
BITBUCKET_COMMIT
BITBUCKET_GIT_HTTP_ORIGIN
BITBUCKET_GIT_SSH_ORIGIN
BITBUCKET_PIPELINE_UUID
BITBUCKET_PROJECT_KEY
BITBUCKET_PROJECT_UUID
BITBUCKET_REPO_FULL_NAME
BITBUCKET_REPO_IS_PRIVATE
BITBUCKET_REPO_OWNER
BITBUCKET_REPO_OWNER_UUID
BITBUCKET_REPO_SLUG
BITBUCKET_REPO_UUID
BITBUCKET_SSH_KEY_FILE
BITBUCKET_STEP_RUN_NUMBER
BITBUCKET_STEP_TRIGGERER_UUID
BITBUCKET_STEP_UUID
BITBUCKET_WORKSPACE
CI
DOCKER_HOST
PIPELINES_JWT_TOKEN

Workspace variables:
AWS_ACCESS_KEY
AWS_SECRET_KEY
COMPOSER_AUTH
NPM_TOKEN
PACKER_AWS_ACCESS_KEY
PACKER_AWS_SECRET_KEY
S3_AWS_ACCESS_KEY
S3_AWS_SECRET_KEY
SANDBOX_S3_AWS_ACCESS_KEY
SANDBOX_S3_AWS_SECRET_KEY
UAT_S3_AWS_ACCESS_KEY
UAT_S3_AWS_SECRET_KEY

Repository variables:
APPLICATION_NAME
DEPLOYMENT_GROUP

Images used:
build : mcr.microsoft.com/dotnet/core/sdk@sha256:150d074697d1cda38a0c2185fe43895d84b5745841e9d15c5adba29604a6e4cb
+ cd AdminPortal_WebAPI

+ apt-get update && apt-get install -y apt-utils
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [422 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
Fetched 8553 kB in 2s (3922 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libapt-inst2.0
The following NEW packages will be installed:
apt-utils libapt-inst2.0
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 625 kB of archives.
After this operation, 1650 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libapt-inst2.0 amd64 1.8.2.3 [204 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 apt-utils amd64 1.8.2.3 [421 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 625 kB in 0s (37.9 MB/s)
Selecting previously unselected package libapt-inst2.0:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 12229 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.8.2.3_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.8.2.3) ...
Selecting previously unselected package apt-utils.
Preparing to unpack .../apt-utils_1.8.2.3_amd64.deb ...
Unpacking apt-utils (1.8.2.3) ...
Setting up libapt-inst2.0:amd64 (1.8.2.3) ...
Setting up apt-utils (1.8.2.3) ...
Processing triggers for libc-bin (2.28-10+deb10u2) ...

+ dotnet build --configuration Release -o AdminPortal_WebAPI/pipelineoutput
Microsoft (R) Build Engine version 16.7.3+2f374e28e for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
Restored /opt/atlassian/pipelines/agent/build/UniverseManagement/UniverseManagement.csproj (in 2.71 sec).
Restored /opt/atlassian/pipelines/agent/build/TransactionManagement/TransactionManagement.csproj (in 2.71 sec).
Restored /opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj (in 2.72 sec).
Restored /opt/atlassian/pipelines/agent/build/MerchantManagement/MerchantManagement.csproj (in 2.72 sec).
Restored /opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj (in 243 ms).
Restored /opt/atlassian/pipelines/agent/build/Common/Common.csproj (in 375 ms).
Restored /opt/atlassian/pipelines/agent/build/AccountManagement/AccountManagement.csproj (in 147 ms).
Restored /opt/atlassian/pipelines/agent/build/PlatformManagement/PlatformManagement.csproj (in 223 ms).
Restored /opt/atlassian/pipelines/agent/build/SubscriptionManagement/SubscriptionManagement.csproj (in 899 ms).
Restored /opt/atlassian/pipelines/agent/build/PermissionManagement/PermissionManagement.csproj (in 199 ms).
Restored /opt/atlassian/pipelines/agent/build/LogManagement/LogManagement.csproj (in 152 ms).
Restored /opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj (in 701 ms).
Restored /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI.csproj (in 1.16 sec).
Restored /opt/atlassian/pipelines/agent/build/FileManagement/FileManagement.csproj (in 160 ms).
Restored /opt/atlassian/pipelines/agent/build/Implementation/Implementation.csproj (in 165 ms).
Restored /opt/atlassian/pipelines/agent/build/ErrorManagement/ErrorManagement.csproj (in 168 ms).
Restored /opt/atlassian/pipelines/agent/build/EncryptDecryptService/EncryptDecryptManagement.csproj (in 149 ms).
Restored /opt/atlassian/pipelines/agent/build/DataReportManagement/DataReportManagement.csproj (in 150 ms).
Restored /opt/atlassian/pipelines/agent/build/DataBaseManagement/DataBaseManagement.csproj (in 157 ms).
Model/Requests/Merchant/External/MerchantAccountWithIDRequest.cs(14,21): warning CS0108: 'MerchantAccountWithIDRequest.Check()' hides inherited member 'MerchantAccountRequest.Check()'. Use the new keyword if hiding was intended. [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Model/Requests/Merchant/External/MerchantWithIDRequest.cs(20,21): warning CS0108: 'MerchantWithIDRequest.Check()' hides inherited member 'MerchantRequest.Check()'. Use the new keyword if hiding was intended. [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Model/Results/Merchant/ExternalMerchantResult.cs(13,36): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Extensions/FileHelper.cs(28,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Extensions/FileHelper.cs(96,34): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Extensions/NullOrEmptyStringToSpecificSymbolContractResolver.cs(36,39): warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Common -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.Common.dll
Repository/EntityFrameworkQueryRepository.cs(19,46): warning CS0169: The field 'EntityFrameworkQueryRepository<TEntity>._itemEventProcessor' is never used [/opt/atlassian/pipelines/agent/build/DataBaseManagement/DataBaseManagement.csproj]
DataBaseManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.DataBaseManagement.dll
BeforeUpdate/ItemBeforeUpdateEventFactory.cs(15,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
BeforeDelete/ItemBeforeDeleteEventFactory.cs(15,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterDeleted/ItemAfterDeletedEventFactory.cs(15,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterUpdated/ItemAfterUpdatedEventFactory.cs(23,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterUpdated/ItemAfterUpdatedEventFactory.cs(21,35): warning CS0219: The variable 'processor' is assigned but its value is never used [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
BeforeCreate/ItemBeforeCreateEventFactory.cs(24,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterCreated/ItemAfterCreatedEventFactory.cs(23,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterCreated/ItemAfterCreatedEventFactory.cs(21,35): warning CS0219: The variable 'processor' is assigned but its value is never used [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
Service/SubscriptionRefundService.cs(104,37): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/SubscriptionManagement/SubscriptionManagement.csproj]
Service/SubscriptionRefundService.cs(55,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/SubscriptionManagement/SubscriptionManagement.csproj]
EventManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.EventManagement.dll
SubscriptionManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.SubscriptionManagement.dll
UniverseManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.UniverseManagement.dll
TransactionManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.TransactionManagement.dll
LogManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.LogManagement.dll
PermissionManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.PermissionManagement.dll
PlatformManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.PlatformManagement.dll
MerchantManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.MerchantManagement.dll
BarcodeGenerater.cs(27,29): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
StandardQRCoder.cs(31,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
StandardQRCoder.cs(51,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
StandardQRCoder.cs(70,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
QRCoder -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.QRCoder.dll
Implementation -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.Implementation.dll
FileManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.FileManagement.dll
EncryptDecryptManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.EncryptDecryptManagement.dll
ErrorManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.ErrorManagement.dll
Service/SyncCampaignStatusService.cs(19,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
Service/SyncPrizeStatusService.cs(18,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
Service/CampaignCommonService.cs(973,38): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
Service/CampaignCommonService.cs(934,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
CampaignManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.CampaignManagement.dll
DataReportManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.DataReportManagement.dll
AccountManagement -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.AccountManagement.dll
AdminPortal_WebAPI -> /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput/GiiftBox.AdminPortal_WebAPI.dll

Build succeeded.

Model/Requests/Merchant/External/MerchantAccountWithIDRequest.cs(14,21): warning CS0108: 'MerchantAccountWithIDRequest.Check()' hides inherited member 'MerchantAccountRequest.Check()'. Use the new keyword if hiding was intended. [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Model/Requests/Merchant/External/MerchantWithIDRequest.cs(20,21): warning CS0108: 'MerchantWithIDRequest.Check()' hides inherited member 'MerchantRequest.Check()'. Use the new keyword if hiding was intended. [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Model/Results/Merchant/ExternalMerchantResult.cs(13,36): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Extensions/FileHelper.cs(28,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Extensions/FileHelper.cs(96,34): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Extensions/NullOrEmptyStringToSpecificSymbolContractResolver.cs(36,39): warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' [/opt/atlassian/pipelines/agent/build/Common/Common.csproj]
Repository/EntityFrameworkQueryRepository.cs(19,46): warning CS0169: The field 'EntityFrameworkQueryRepository<TEntity>._itemEventProcessor' is never used [/opt/atlassian/pipelines/agent/build/DataBaseManagement/DataBaseManagement.csproj]
BeforeUpdate/ItemBeforeUpdateEventFactory.cs(15,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
BeforeDelete/ItemBeforeDeleteEventFactory.cs(15,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterDeleted/ItemAfterDeletedEventFactory.cs(15,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterUpdated/ItemAfterUpdatedEventFactory.cs(23,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterUpdated/ItemAfterUpdatedEventFactory.cs(21,35): warning CS0219: The variable 'processor' is assigned but its value is never used [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
BeforeCreate/ItemBeforeCreateEventFactory.cs(24,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterCreated/ItemAfterCreatedEventFactory.cs(23,13): warning CS1522: Empty switch block [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
AfterCreated/ItemAfterCreatedEventFactory.cs(21,35): warning CS0219: The variable 'processor' is assigned but its value is never used [/opt/atlassian/pipelines/agent/build/EventManagement/EventManagement.csproj]
Service/SubscriptionRefundService.cs(104,37): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/SubscriptionManagement/SubscriptionManagement.csproj]
Service/SubscriptionRefundService.cs(55,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/SubscriptionManagement/SubscriptionManagement.csproj]
BarcodeGenerater.cs(27,29): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
StandardQRCoder.cs(31,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
StandardQRCoder.cs(51,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
StandardQRCoder.cs(70,30): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/QRCoder/QRCoder.csproj]
Service/SyncCampaignStatusService.cs(19,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
Service/SyncPrizeStatusService.cs(18,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
Service/CampaignCommonService.cs(973,38): warning CS0168: The variable 'ex' is declared but never used [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
Service/CampaignCommonService.cs(934,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/opt/atlassian/pipelines/agent/build/CampaignManagement/CampaignManagement.csproj]
25 Warning(s)
0 Error(s)

Time Elapsed 00:00:22.90

+ cd AdminPortal_WebAPI/pipelineoutput

+ apt-get update && apt-get install --yes zip
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
unzip
The following NEW packages will be installed:
unzip zip
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 406 kB of archives.
After this operation, 1203 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian-security buster/updates/main amd64 unzip amd64 6.0-23+deb10u3 [172 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 zip amd64 3.0-11+b1 [234 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 406 kB in 0s (22.9 MB/s)
Selecting previously unselected package unzip.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 12359 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-23+deb10u3_amd64.deb ...
Unpacking unzip (6.0-23+deb10u3) ...
Selecting previously unselected package zip.
Preparing to unpack .../zip_3.0-11+b1_amd64.deb ...
Unpacking zip (3.0-11+b1) ...
Setting up unzip (6.0-23+deb10u3) ...
Setting up zip (3.0-11+b1) ...
Processing triggers for mime-support (3.62) ...

+ zip -r pipelineout.zip . -i AdminPortal_WebAPI/pipelineoutput/.* *
adding: MySqlConnector.dll (deflated 55%)
adding: Microsoft.IdentityModel.Protocols.OpenIdConnect.dll (deflated 71%)
adding: Amazon.Lambda.Serialization.SystemTextJson.dll (deflated 48%)
adding: System.IdentityModel.Tokens.Jwt.dll (deflated 62%)
adding: GiiftBox.QRCoder.dll (deflated 56%)
adding: GiiftBox.ErrorManagement.dll (deflated 65%)
adding: System.Composition.AttributedModel.dll (deflated 45%)
adding: GiiftBox.EventManagement.pdb (deflated 49%)
adding: Pomelo.EntityFrameworkCore.MySql.dll (deflated 63%)
adding: GiiftBox.AdminPortal_WebAPI.runtimeconfig.json (deflated 31%)
adding: GiiftBox.EncryptDecryptManagement.pdb (deflated 48%)
adding: Aspose.Zip.dll (deflated 36%)
adding: Aspose.Cells.dll (deflated 61%)
adding: Google.Apis.Auth.PlatformServices.dll (deflated 61%)
adding: GiiftBox.UniverseManagement.dll (deflated 68%)
adding: GiiftBox.ErrorManagement.deps.json (deflated 84%)
adding: Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll (deflated 55%)
adding: GiiftBox.EncryptDecryptManagement.dll (deflated 60%)
adding: Swashbuckle.AspNetCore.Swagger.dll (deflated 53%)
adding: GiiftBox.EventManagement.deps.json (deflated 84%)
adding: Microsoft.IdentityModel.Protocols.dll (deflated 50%)
adding: Microsoft.Extensions.Primitives.dll (deflated 51%)
adding: Amazon.Lambda.ApplicationLoadBalancerEvents.dll (deflated 49%)
adding: GiiftBox.DataBaseManagement.deps.json (deflated 84%)
adding: GiiftBox.Common.runtimeconfig.dev.json (deflated 24%)
adding: Microsoft.IdentityModel.JsonWebTokens.dll (deflated 57%)
adding: Google.Apis.AnalyticsReporting.v4.dll (deflated 63%)
adding: Newtonsoft.Json.Bson.dll (deflated 57%)
adding: System.Configuration.ConfigurationManager.dll (deflated 60%)
adding: GiiftBox.AdminPortal_WebAPI.deps.json (deflated 87%)
adding: System.Text.Json.dll (deflated 63%)
adding: GiiftBox.TransactionManagement.deps.json (deflated 84%)
adding: GiiftBox.AccountManagement.deps.json (deflated 84%)
adding: Stripe.net.dll (deflated 71%)
adding: Microsoft.AspNetCore.Authentication.JwtBearer.dll (deflated 51%)
adding: Aspose.BarCode.dll (deflated 60%)
adding: GiiftBox.Common.pdb (deflated 66%)
adding: Microsoft.Extensions.DependencyInjection.Abstractions.dll (deflated 54%)
adding: IdentityModel.dll (deflated 65%)
adding: GiiftBox.PlatformManagement.dll (deflated 56%)
adding: appsettings.Staging.json (deflated 50%)
adding: NuGet.Frameworks.dll (deflated 55%)
adding: GiiftBox.AdminPortal_WebAPI.runtimeconfig.dev.json (deflated 24%)
adding: GiiftBox.AdminPortal_WebAPI.pdb (deflated 54%)
adding: GiiftBox.DataBaseManagement.pdb (deflated 49%)
adding: GiiftBox.DataReportManagement.deps.json (deflated 84%)
adding: Microsoft.CodeAnalysis.Workspaces.dll (deflated 62%)
adding: System.Composition.TypedParts.dll (deflated 52%)
adding: Google.Apis.dll (deflated 55%)
adding: GiiftBox.SubscriptionManagement.pdb (deflated 51%)
adding: Amazon.Lambda.AspNetCoreServer.dll (deflated 58%)
adding: Microsoft.CodeAnalysis.CSharp.Workspaces.dll (deflated 60%)
adding: web.config (deflated 49%)
adding: FluentValidation.AspNetCore.dll (deflated 45%)
adding: System.Drawing.Common.dll (deflated 64%)
adding: appsettings.json (deflated 25%)
adding: GiiftBox.Common.runtimeconfig.json (deflated 23%)
adding: GiiftBox.AdminPortal_WebAPI.dll (deflated 63%)
adding: Swashbuckle.AspNetCore.SwaggerGen.dll (deflated 57%)
adding: LinqKit.Core.dll (deflated 57%)
adding: Amazon.Lambda.Logging.AspNetCore.dll (deflated 50%)
adding: HtmlAgilityPack.dll (deflated 62%)
adding: GiiftBox.UniverseManagement.pdb (deflated 52%)
adding: Microsoft.AspNetCore.Mvc.Versioning.dll (deflated 56%)
adding: GiiftBox.AccountManagement.pdb (deflated 51%)
adding: GiiftBox.MerchantManagement.pdb (deflated 53%)
adding: Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll (deflated 49%)
adding: GiiftBox.ErrorManagement.pdb (deflated 47%)
adding: Microsoft.Extensions.DependencyInjection.dll (deflated 53%)
adding: Microsoft.VisualStudio.Web.CodeGeneration.Core.dll (deflated 53%)
adding: GiiftBox.FileManagement.pdb (deflated 51%)
adding: System.Composition.Hosting.dll (deflated 52%)
adding: GiiftBox.LogManagement.deps.json (deflated 84%)
adding: Microsoft.EntityFrameworkCore.Design.dll (deflated 61%)
adding: appsettings.Development.json (deflated 51%)
adding: System.Composition.Convention.dll (deflated 53%)
adding: GiiftBox.DataReportManagement.dll (deflated 62%)
adding: GiiftBox.PlatformManagement.pdb (deflated 48%)
adding: System.IO.Pipelines.dll (deflated 52%)
adding: MimeKit.dll (deflated 65%)
adding: Microsoft.AspNetCore.JsonPatch.dll (deflated 56%)
adding: Microsoft.IdentityModel.Logging.dll (deflated 48%)
adding: GiiftBox.TransactionManagement.pdb (deflated 48%)
adding: NETCore.MailKit.dll (deflated 59%)
adding: FluentValidation.dll (deflated 67%)
adding: Google.Apis.Auth.dll (deflated 59%)
adding: Microsoft.EntityFrameworkCore.Abstractions.dll (deflated 47%)
adding: FluentValidation.DependencyInjectionExtensions.dll (deflated 36%)
adding: MailKit.dll (deflated 66%)
adding: GiiftBox.UniverseManagement.deps.json (deflated 84%)
adding: GiiftBox.FileManagement.deps.json (deflated 84%)
adding: GiiftBox.SubscriptionManagement.dll (deflated 65%)
adding: System.Text.Encodings.Web.dll (deflated 71%)
adding: Scrutor.dll (deflated 58%)
adding: GiiftBox.PlatformManagement.deps.json (deflated 84%)
adding: GiiftBox.Implementation.pdb (deflated 47%)
adding: TencentCloud.dll (deflated 76%)
adding: GiiftBox.QRCoder.deps.json (deflated 84%)
adding: Microsoft.Bcl.AsyncInterfaces.dll (deflated 45%)
adding: GiiftBox.PermissionManagement.pdb (deflated 47%)
adding: Microsoft.CodeAnalysis.Razor.dll (deflated 60%)
adding: Microsoft.AspNetCore.Razor.Language.dll (deflated 65%)
adding: Swashbuckle.AspNetCore.ReDoc.dll (deflated 70%)
adding: GiiftBox.AccountManagement.dll (deflated 62%)
adding: Microsoft.Extensions.DependencyModel.dll (deflated 54%)
adding: Swashbuckle.AspNetCore.Annotations.dll (deflated 56%)
adding: GiiftBox.MerchantManagement.deps.json (deflated 84%)
adding: Microsoft.CodeAnalysis.dll (deflated 60%)
adding: GiiftBox.Common.deps.json (deflated 84%)
adding: BarcodeStandard.dll (deflated 66%)
adding: System.Security.Cryptography.ProtectedData.dll (deflated 44%)
adding: Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll (deflated 46%)
adding: Microsoft.VisualStudio.Web.CodeGeneration.dll (deflated 49%)
adding: appsettings.Local.json (deflated 50%)
adding: GiiftBox.EventManagement.dll (deflated 63%)
adding: Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll (deflated 73%)
adding: Swashbuckle.AspNetCore.Filters.dll (deflated 55%)
adding: Amazon.Lambda.APIGatewayEvents.dll (deflated 57%)
adding: Microsoft.AspNetCore.Http.Features.dll (deflated 50%)
adding: Microsoft.Bcl.HashCode.dll (deflated 44%)
adding: Newtonsoft.Json.dll (deflated 62%)
adding: GiiftBox.SubscriptionManagement.deps.json (deflated 83%)
adding: GiiftBox.MerchantManagement.dll (deflated 67%)
adding: appsettings.ProductionTest.json (deflated 51%)
adding: GiiftBox.DataBaseManagement.dll (deflated 56%)
adding: GiiftBox.Implementation.dll (deflated 57%)
adding: Swashbuckle.AspNetCore.SwaggerUI.dll (deflated 71%)
adding: Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll (deflated 52%)
adding: GiiftBox.DataReportManagement.pdb (deflated 48%)
adding: QRCoder.dll (deflated 58%)
adding: GiiftBox.FileManagement.dll (deflated 66%)
adding: GiiftBox.Common.dll (deflated 74%)
adding: Microsoft.EntityFrameworkCore.dll (deflated 67%)
adding: BouncyCastle.Crypto.dll (deflated 54%)
adding: GiiftBox.CampaignManagement.pdb (deflated 56%)
adding: Google.Apis.Core.dll (deflated 55%)
adding: GiiftBox.LogManagement.dll (deflated 59%)
adding: appsettings.Production.json (deflated 49%)
adding: Microsoft.CodeAnalysis.CSharp.dll (deflated 62%)
adding: Microsoft.IdentityModel.Tokens.dll (deflated 67%)
adding: Microsoft.EntityFrameworkCore.Relational.dll (deflated 65%)
adding: GiiftBox.QRCoder.pdb (deflated 47%)
adding: GiiftBox.TransactionManagement.dll (deflated 66%)
adding: dotnet-aspnet-codegenerator-design.dll (deflated 50%)
adding: System.Composition.Runtime.dll (deflated 44%)
adding: GiiftBox.PermissionManagement.dll (deflated 65%)
adding: GiiftBox.EncryptDecryptManagement.deps.json (deflated 84%)
adding: GiiftBox.PermissionManagement.deps.json (deflated 84%)
adding: GiiftBox.Implementation.deps.json (deflated 84%)
adding: Microsoft.Win32.SystemEvents.dll (deflated 52%)
adding: GiiftBox.AdminPortal_WebAPI (deflated 61%)
adding: Amazon.Lambda.Core.dll (deflated 47%)
adding: Pomelo.JsonObject.dll (deflated 51%)
adding: GiiftBox.LogManagement.pdb (deflated 48%)
adding: Microsoft.OpenApi.dll (deflated 61%)
adding: GiiftBox.CampaignManagement.dll (deflated 72%)
adding: aws-lambda-tools-defaults.json (deflated 51%)
adding: GiiftBox.CampaignManagement.deps.json (deflated 84%)
adding: Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll (deflated 50%)

+ find . -iname '*.zip'
./pipelineout.zip

+ ls /opt/atlassian/pipelines/agent/build/AdminPortal_WebAPI/AdminPortal_WebAPI/pipelineoutput
Amazon.Lambda.APIGatewayEvents.dll
Amazon.Lambda.ApplicationLoadBalancerEvents.dll
Amazon.Lambda.AspNetCoreServer.dll
Amazon.Lambda.Core.dll
Amazon.Lambda.Logging.AspNetCore.dll
Amazon.Lambda.Serialization.SystemTextJson.dll
Aspose.BarCode.dll
Aspose.Cells.dll
Aspose.Zip.dll
BarcodeStandard.dll
BouncyCastle.Crypto.dll
Dependences
FluentValidation.AspNetCore.dll
FluentValidation.DependencyInjectionExtensions.dll
FluentValidation.dll
GiiftBox.AccountManagement.deps.json
GiiftBox.AccountManagement.dll
GiiftBox.AccountManagement.pdb
GiiftBox.AdminPortal_WebAPI
GiiftBox.AdminPortal_WebAPI.deps.json
GiiftBox.AdminPortal_WebAPI.dll
GiiftBox.AdminPortal_WebAPI.pdb
GiiftBox.AdminPortal_WebAPI.runtimeconfig.dev.json
GiiftBox.AdminPortal_WebAPI.runtimeconfig.json
GiiftBox.CampaignManagement.deps.json
GiiftBox.CampaignManagement.dll
GiiftBox.CampaignManagement.pdb
GiiftBox.Common.deps.json
GiiftBox.Common.dll
GiiftBox.Common.pdb
GiiftBox.Common.runtimeconfig.dev.json
GiiftBox.Common.runtimeconfig.json
GiiftBox.DataBaseManagement.deps.json
GiiftBox.DataBaseManagement.dll
GiiftBox.DataBaseManagement.pdb
GiiftBox.DataReportManagement.deps.json
GiiftBox.DataReportManagement.dll
GiiftBox.DataReportManagement.pdb
GiiftBox.EncryptDecryptManagement.deps.json
GiiftBox.EncryptDecryptManagement.dll
GiiftBox.EncryptDecryptManagement.pdb
GiiftBox.ErrorManagement.deps.json
GiiftBox.ErrorManagement.dll
GiiftBox.ErrorManagement.pdb
GiiftBox.EventManagement.deps.json
GiiftBox.EventManagement.dll
GiiftBox.EventManagement.pdb
GiiftBox.FileManagement.deps.json
GiiftBox.FileManagement.dll
GiiftBox.FileManagement.pdb
GiiftBox.Implementation.deps.json
GiiftBox.Implementation.dll
GiiftBox.Implementation.pdb
GiiftBox.LogManagement.deps.json
GiiftBox.LogManagement.dll
GiiftBox.LogManagement.pdb
GiiftBox.MerchantManagement.deps.json
GiiftBox.MerchantManagement.dll
GiiftBox.MerchantManagement.pdb
GiiftBox.PermissionManagement.deps.json
GiiftBox.PermissionManagement.dll
GiiftBox.PermissionManagement.pdb
GiiftBox.PlatformManagement.deps.json
GiiftBox.PlatformManagement.dll
GiiftBox.PlatformManagement.pdb
GiiftBox.QRCoder.deps.json
GiiftBox.QRCoder.dll
GiiftBox.QRCoder.pdb
GiiftBox.SubscriptionManagement.deps.json
GiiftBox.SubscriptionManagement.dll
GiiftBox.SubscriptionManagement.pdb
GiiftBox.TransactionManagement.deps.json
GiiftBox.TransactionManagement.dll
GiiftBox.TransactionManagement.pdb
GiiftBox.UniverseManagement.deps.json
GiiftBox.UniverseManagement.dll
GiiftBox.UniverseManagement.pdb
Google.Apis.AnalyticsReporting.v4.dll
Google.Apis.Auth.PlatformServices.dll
Google.Apis.Auth.dll
Google.Apis.Core.dll
Google.Apis.dll
HtmlAgilityPack.dll
IdentityModel.dll
LinqKit.Core.dll
MailKit.dll
Microsoft.AspNetCore.Authentication.JwtBearer.dll
Microsoft.AspNetCore.Http.Features.dll
Microsoft.AspNetCore.JsonPatch.dll
Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll
Microsoft.AspNetCore.Mvc.Versioning.dll
Microsoft.AspNetCore.Razor.Language.dll
Microsoft.Bcl.AsyncInterfaces.dll
Microsoft.Bcl.HashCode.dll
Microsoft.CodeAnalysis.CSharp.Workspaces.dll
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.CodeAnalysis.Razor.dll
Microsoft.CodeAnalysis.Workspaces.dll
Microsoft.CodeAnalysis.dll
Microsoft.EntityFrameworkCore.Abstractions.dll
Microsoft.EntityFrameworkCore.Design.dll
Microsoft.EntityFrameworkCore.Relational.dll
Microsoft.EntityFrameworkCore.dll
Microsoft.Extensions.DependencyInjection.Abstractions.dll
Microsoft.Extensions.DependencyInjection.dll
Microsoft.Extensions.DependencyModel.dll
Microsoft.Extensions.Primitives.dll
Microsoft.IdentityModel.JsonWebTokens.dll
Microsoft.IdentityModel.Logging.dll
Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
Microsoft.IdentityModel.Protocols.dll
Microsoft.IdentityModel.Tokens.dll
Microsoft.OpenApi.dll
Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll
Microsoft.VisualStudio.Web.CodeGeneration.Core.dll
Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll
Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll
Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll
Microsoft.VisualStudio.Web.CodeGeneration.dll
Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll
Microsoft.Win32.SystemEvents.dll
MimeKit.dll
MultiLanguage
MySqlConnector.dll
NETCore.MailKit.dll
Newtonsoft.Json.Bson.dll
Newtonsoft.Json.dll
NuGet.Frameworks.dll
Pomelo.EntityFrameworkCore.MySql.dll
Pomelo.JsonObject.dll
Properties
QRCoder.dll
Scrutor.dll
Stripe.net.dll
Swashbuckle.AspNetCore.Annotations.dll
Swashbuckle.AspNetCore.Filters.dll
Swashbuckle.AspNetCore.ReDoc.dll
Swashbuckle.AspNetCore.Swagger.dll
Swashbuckle.AspNetCore.SwaggerGen.dll
Swashbuckle.AspNetCore.SwaggerUI.dll
System.Composition.AttributedModel.dll
System.Composition.Convention.dll
System.Composition.Hosting.dll
System.Composition.Runtime.dll
System.Composition.TypedParts.dll
System.Configuration.ConfigurationManager.dll
System.Drawing.Common.dll
System.IO.Pipelines.dll
System.IdentityModel.Tokens.Jwt.dll
System.Security.Cryptography.ProtectedData.dll
System.Text.Encodings.Web.dll
System.Text.Json.dll
Template
TencentCloud.dll
appsettings.Development.json
appsettings.Local.json
appsettings.Production.json
appsettings.ProductionTest.json
appsettings.Staging.json
appsettings.json
ar
aws-lambda-tools-defaults.json
cs
de
de-DE
dotnet-aspnet-codegenerator-design.dll
en
en-US
es
fr
id
it
ja
ko
pipelineout.zip
pl
pt-BR
ru
runtimes
tr
web.config
zh
zh-Hans
zh-Hant
Assembling contents of new cache 'node'
Cache "node: node_modules": Skipping upload for empty cache

Searching for files matching artifact pattern AdminPortal_WebAPI/pipelineoutput/pipelineout.zip

Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

0 votes
Omkar posam January 5, 2023

Hi please someone help me out @bitbucket 

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 6, 2023

@Omkar posam hi. You have to understand where you put your artifact.
Under your script check where you are (add some ls command to debug):
script:
- cd AdminPortal_WebAPI

-ls -la
- apt-get update && apt-get install -y apt-utils
- dotnet build --configuration Release -o AdminPortal_WebAPI/pipelineoutput
- cd AdminPortal_WebAPI/pipelineoutput

- ls -la
- apt-get update && apt-get install --yes zip
- zip -r pipelineout.zip . -i AdminPortal_WebAPI/pipelineoutput/.* *

- ls -la

Then properly store you artifact. Here some example:

script:
- apt-get update -y
- cd admin/front-end/ -- you are in admin/front-end folder
- npm install
- CI=false
- npm run build
- apt-get install -y zip
- zip -r myapp.zip * -- you created zip under admin/front-end folder
artifacts:
- admin/front-end/myapp.zip -- you store your artifact
- step:
name: Upload to S3
script:
- pipe: atlassian/aws-code-deploy:0.2.3
variables:
COMMAND: 'upload'
ZIP_FILE: 'admin/front-end/myapp.zip

Regards, Igor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events