Questions tagged [cicd]

Use for questions related to practices of CICD (Continuous Integration and Continuous Delivery or Continuous Deployment) and its related tools.

2046 questions
3
votes
1 answer

Everything runs fine, but at the end the following error comes

Code: #!/usr/bin/env bash # Exit immediately if command returns bad exit code set -e ENABLED_SLACK_REFS=(develop qa main prod) export CI_COMMIT_AUTHOR=$(git log --format="%an" -n1) export CI_COMMIT_MESSAGE=$(git log --format="%B" -n1) export…
Hatt Grey
  • 31
  • 3
3
votes
0 answers

Using Gitlab Pages to trigger another projects pipeline

I am trying to create a form on Gitlab pages (only accessible to Members) and on submit I want to trigger a pipeline of another project which will use all the form values and use it as pipeline variables. I used Hugo template to create the Gitlab…
3
votes
1 answer

GitHub Actions deploy error when using 'working-directory' option for Node.js app in subfolder, and zip/unzip artifact steps

I have a simple Node.js server that I'm deploying to Azure App Service using the following workflow in GitHub Actions. It includes artifact zip and unzip steps as per this answer, to improve deployment performance. name: Build and deploy Node.js app…
Neo
  • 4,145
  • 6
  • 53
  • 76
3
votes
1 answer

Github action runner error WRITE ERROR: Object reference not set to an instance of an object

During Github action self-runner configuration on Ubuntu 18 getting Error Object reference not set to an instance of an object. I used the following commands to configure it mkdir actions-runner && cd actions-runner curl -o…
3
votes
0 answers

Is there a way to use Github actions secrets that contains another secret?

I want to create a CI/CD using github actions workflow file. I want to define secrets to be used in the workflow on the github actions settings tab. Is there a way to include one secret inside another? For example I have: SECRET1 = test. SECRET2 =…
mishasoni
  • 31
  • 1
3
votes
2 answers

xcodebuild "Your session has expired" while trying convert xarchive to .ipa file

I am trying to create a build server for my CICD pipeline. The problem is whenever I'm trying to run the following command: xcodebuild -exportArchive -archivePath /Users/ec2-user/CICD/Project_path/build/ios/archive/Runner.xcarchive -exportPath…
3
votes
1 answer

Change timestamp variable format or do replacement

I am currently working on setting up ci/cd pipeline for pushing nuget packages. I want to use the built-in CI_COMMIT_TIMESTAMP for version suffix however its ISO 8601 format is not valid for this. Example ISO 8601 (UTC): 2022-03-15T18:34:43Z Will…
dev01
  • 97
  • 1
  • 1
  • 9
3
votes
4 answers

jq - return array value if its length is not null

I have a report.json generated by a gitlab pipeline. It looks like: {"version":"14.0.4","vulnerabilities":[{"id":"64e69d1185ecc48a1943141dcb6dbd628548e725f7cef70d57403c412321aaa0","category":"secret_detection"....and so on If no vulnerabilities…
Laurian
  • 31
  • 1
  • 3
3
votes
0 answers

Azure devops pipeline triggers for abandoned PR

I'm working on an Azure devops pipeline and I already have two triggers in place. One for running on a Pull Request and one for running on Master - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: - ${{ if…
Blue Moon
  • 4,421
  • 20
  • 52
  • 91
3
votes
1 answer

Azure DevOPS - run task only if artifact exists from build

I have two pipelines - build and publish. Build pipeline can produce up two artifacts but it depends on given parameters. Publish pipeline is automatically triggered when build pipeline is completed. Publish pipeline then tooks published artifacts…
Petr Nymsa
  • 98
  • 1
  • 9
3
votes
1 answer

gitlab: How to have a another gitlab-ci.yml and use it whenever i want, instead of automatic triggering

I have a gitlab-ci.yml file, which gets triggered when I commit changes. I want to have another file gitlab-ci-notrigger.yml which will not be triggered. But I can use this to run pipeline whenever i want manually
Santhosh
  • 9,965
  • 20
  • 103
  • 243
3
votes
1 answer

Does Google Cloud Build keep docker images between steps by default?

Does Google Cloud Build keep docker images between build steps by default? In their docs they say built images are discarded after every step but I've seen examples in which build steps use images produced in previous build ones! so, are built…
Rabi
  • 147
  • 2
  • 12
3
votes
0 answers

This may indicate the process failed to start. Error: spawn /usr/bin/python ENOENT error occurring when deploying python app with azure devops

Hello Folks , I am facing issue in Azure DevOps while deploying Python apps and in the deployment time. I am facing this issue Error: spawn /usr/bin/python ENOENT.
AKD
  • 31
  • 1
3
votes
0 answers

Cypress run on Gitlab CI/CD always failed but work properly on local run using Chrome image & node

I have configured my cypress test in the GitLab CI/CD pipeline, However, in my local environment, it runs perfectly with no errors, however, when the pipeline job runs, only 2 specs are successful and the rest are in errors. Cypress version:…
3
votes
2 answers

Unable to set Variable in gitlab-ci.yml

In this abridged version of a gitlab-ci.yaml file. The global variable APP_VERSION can either be filled or left blank. In the case of it being left blank, I want to set the variable to the version value that exists in version_cache/version.txt. If…
paiego
  • 3,619
  • 34
  • 43