I have created a pipeline to fetch the latest angular code from git repository and create a build.
It successfully creating the build and the next step is to copy the build folder to a remote server location.
I am using linux platform and using scp to copy build output folder to remote server but for some reason it is not copying the files to remote server, also the output at build console is not showing anything. And nothing copied to remote server.
Is there any better way to do that, to copy resources through concourse pipeline to a remote server?
My build.yml contain following content.
image_resource: type: docker-image source: repository: node inputs: - name: repo outputs: - name: build-output run: path: sh args: - -exc - | set -e -u -x cat /etc/os-release echo "Moving to project" cd repo/angular-web echo "Installing Packages" npm install echo "Build Angular Code" npm run build-prod echo "Copying dist folder in output folder(exist on root)" sshpass -p MYPASSWORD scp -r ./dist MYUSERNAME@MYSERVERADDRESS:/app/www/environments/qa/test1 `