my build is created successfully but .dll files are not found at expected path git logs :
$ echo "Listing output directory contents:" 2006Listing output directory contents: 2007$ ls -la $PUBLISH_OUTPUT_DIR 2008total 8 2009drwxr-xr-x 2 root root 4096 Feb 5 06:57 . 2010drwxr-xr-x 3 root root 4096 Feb 5 06:57 .. 2011$ cd $PUBLISH_OUTPUT_DIR 2012$ zip -r site.zip . 2013zip error: Nothing to do! (try: zip -r site.zip . -i .) 2014Cleaning up project directory and file based variables00:01 2015ERROR: Job failed: exit code 1
gitlab-ci.yml file:
stages:
- build
- deploy
variables: AZURE_WEBAPP_NAME: "artisanagentportalstaging" PUBLISH_OUTPUT_DIR: "./Agent_Solution/bin/Release" AZURE_RESOURCE_GROUP: "Chatbot"
build: stage: build image: mono:latest
before_script: - apt-get update && apt-get install -y nuget zip - mkdir -p $PUBLISH_OUTPUT_DIR - nuget restore Agent_Solution.sln
script: # Build with MSBuild using proper output directory configuration - msbuild Agent_Solution.sln /p:Configuration=Release /p:OutDir="$PUBLISH_OUTPUT_DIR/" /p:BaseOutputPath="$PUBLISH_OUTPUT_DIR/" /p:OutputPath="$PUBLISH_OUTPUT_DIR/" /t:Rebuild
# Debug output
- echo "Listing output directory contents:"
- ls -la $PUBLISH_OUTPUT_DIR
# Create deployment package
- cd $PUBLISH_OUTPUT_DIR
- zip -r site.zip .
artifacts: paths: - $PUBLISH_OUTPUT_DIR/site.zip expire_in: 1 hour rules: - if: '$CI_COMMIT_BRANCH == "Agent_Portal_Staging"'
I am able to build the application but unable to get the generated dll files