2022 Developer Survey is open! Take survey.

Questions tagged [continuous-integration]

Continuous integration (CI) is the software engineering practice of integrating code continuously and frequently rather than wait for changes to accumulate causing code conflicts to accumulate. Usually these changes are verified automatically using build and test processes.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Issue with build phase in AWS Pipeline (VUE)

We would like to deploy this Node website using these aws artefacts (codepipeline, codebuild, etc.) The website's node version is 15.14. We have all the code in AWS Codecommit. Everything in the ...
user avatar
0 votes
1 answer
54 views
+50

Deploying monorepo without SSH

Full Disclosure: I'm a DevOps noob. I am running a MERN mono repo on an EC2 instance. Originally, I would always SSH into my machine, pull from the repository, and build again. But there are problems ...
user avatar
0 votes
0 answers
16 views

Best practice for gitops with helm

I want to follow “gitops” for deployment — the state given environment should be in is checked in version control in appropriate branch and then the CD server applies the configuration. With plain ...
user avatar
  • 255
0 votes
0 answers
299 views

Mount volume to build image used by gitlab runner

I have custom image where I want to run some tests which require installed app which in turn need openGL context. I can run it in container composed this way and manually build project and run tests. ...
user avatar
  • 3
0 votes
0 answers
20 views

Build pipeline to upload .jar package to AWS Lambda

So far according to the documentation at https://docs.aws.amazon.com/lambda/latest/dg/java-package.html, the only way to upload .jar code to an AWS Lambda function would be to manually upload the file ...
user avatar
2 votes
2 answers
56 views

How to implement Continuous Integration with Puppet and multiple services

We're trying to implement a Continuous Integration pipeline in our environment. We have a lot of different services, each with its own Git repository. Deployment is done via Puppet, using an external ...
user avatar
0 votes
0 answers
24 views

Is there a way to configure Bitbucket to show compiler warnings in PRs?

A common problem we have at work is people committing code without having noticed that they're increasing the number of compiler warnings. The ultimate goal is to make warnings errors, but until the ...
user avatar
  • 101
0 votes
0 answers
596 views

Docker/Podman in Docker fails as a GitLab CI job

Context I am running my own GitLab instance with an extra server for CI. In case it matters my host for the gitlab runner has CentOS 8 and the gitlab runner is version 14.4.0 and the gitlab instance ...
user avatar
  • 163
0 votes
0 answers
38 views

gitlab ci: How to share cache between fork and parent repository?

first please read the context of my inquiry. A project named teamspace/foo I maintain at work makes each teammate fork it. I have a scheduled pipeline that remakes cache each night. Now onto the ...
user avatar
0 votes
0 answers
72 views

Jenkins remote build agent build and return artifact to master?

I currently have a master node (Linux host) set up, which is not defaulting to do any building, and a remote build node (Linux host) set up that performs builds. My artifacts are building on the ...
user avatar
0 votes
1 answer
149 views

Jenkins Linux Master + Windows Build agent?

Will a Jenkins Linux master work with a Windows build agent? Does anyone know if this set up can be achieved and is supported? Just looking for a proof of concept and that this can work so I can ...
user avatar
0 votes
1 answer
274 views

Jenkins: Difference between job and workspace/job?

In most recent version of Jenkins on centos 7.9, what is the difference between /var/lib/jenkins/jobs/ and /var/lib/jenkins/workspace/? They both look like they house the same thing (artifact of a ...
user avatar
0 votes
0 answers
21 views

CI Pipeline that doesn't require OAuth?

I am wanting to build a CI/CD pipeline Github app. What CI tool can I use to leverage to build this? I want my application to handle the Github OAuth so as far as the user is concerned, they only ...
user avatar
  • 113
0 votes
2 answers
123 views

How does Google Cloud Platform handle database backups with --async flag?

I'm currently working on adding an extra step to our companies CI/CD pipeline so we make backups of the database before making a deployment that could potentially run migrations on our database. To ...
user avatar
0 votes
0 answers
205 views

Azure: When Deploy FunctionApp to slot -> Error: Package deployment using ZIP Deploy failed. Refer logs for more details

I'm using Azure DevOps and their CI/CD pipelines. When I deploy my Windows FunctionApp to a slot I get this error: 2021-05-04T13:10:14.0501876Z ##[error]Failed to deploy web package to App Service. ...
user avatar
1 vote
0 answers
217 views

System call failure when executing CI script in Docker

I'm currently setting up GitLab CI/CD. The Runner is installed on a Windows Server 2019 VM which has Docker Engine running. My gitlab-ci.yml looks something like this: variables: GIT_STRATEGY: clone ...
user avatar
1 vote
1 answer
1k views

Kaniko (GitLab CI, K8s) can not push to Nexus Repository Manager: UNAUTHORIZED: access to the requested resource is not authorized

my GitLab CI job build a example container image with Kaniko with the GitLab runner on K8s. All services are in my LAN behind a static IP. The build process pulls an ArchLinux image from my first ...
user avatar
3 votes
0 answers
3k views

GitHub SSH action failing: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

I have recently rented a VPS running CentOS 8. I want to make countinuous deployment from one of my repos, so that when I push to main the repo is updated. I followed this tutorial on a fresh CentOS ...
user avatar
  • 31
0 votes
2 answers
78 views

Build Pipeline ARM Templates - TFS 2018

My client is using TFS 2018 as their CI/CD tool. I know you can use TFS to deploy ARM templates to Azure but I've never done it before. I usually just use the portal or powershell. I know I need to ...
user avatar
  • 578
1 vote
2 answers
2k views

port mapping didn't happen for a container deployed on AWS ECS(uses EC2)

Context: I am using Circle CI's aws-ecs/deploy-service-update orb to deploy my docker container by pulling the latest image in AWS ECR and deploy it in AWS ECS with AWS EC2 instance. This container is ...
user avatar
3 votes
1 answer
1k views

Cloud Build: How to restrict when to build depending if a directory got modified?

I have a Cloud Build in GCP that pulls from github and builds images when a PR merges to master. However I would like to restrict builds to occur only when a particular folder gets modified. There is ...
user avatar
  • 181
3 votes
0 answers
2k views

Setup 2FA/MFA on Jenkins

I'm trying to find how to setup 2FA/MFA on users who login to Jenkins, with Google Authenticator. Everything I'm finding is about logins to servers/git/etc, but not for the actual USERS in Jenkins. ...
user avatar
  • 431
1 vote
0 answers
19 views

Managing and installing packages for applications in a Windows Environment

I have been tasked with the mission to setup development pipelines in a predominant Windows environment, using mainly Devops Server 2019. I personally come from a strong Linux background, and been ...
user avatar
1 vote
1 answer
147 views

OS limits ignored by bamboo

Our developers wants bamboo because of integrations to other Atlassian software and we have regularly problems with this buildserver. Often the buildjobs fail with OutOfMemory exceptions like this: ...
user avatar
  • 496
1 vote
0 answers
254 views

Gitlab CI/CD with conditional scripts

Here is what I wish to do in GitLab CI/CD: Whenever something is pushed into a specific branch I wish to have multiple scrips and CI/CD should decide which script should be run based on the pushed ...
user avatar
  • 984
2 votes
1 answer
2k views

Configure gitlab-ci.yml to run pytest in docker container on Gitlab CI

I have a Cookiecutter django project which uses Docker. I write my tests using pytest and I run my tests using docker-compose -f local.yml run django pytest. My local.yml file is in my root dir (where ...
user avatar
3 votes
1 answer
302 views

CircleCI cannot specify region to deploy to in GKE

I have been tying to update a deployment in a GKE cluster using CircleCI. I was able to make container build and upload to GCR work just fine. But I could not find a way to specify the GCP region ...
user avatar
  • 517
0 votes
0 answers
3k views

Could not resolve hostname nodename nor servname provided, or not known only with rsync

I work with sensitive data, so my host requires that I use a bastion to access the server. I can connect to the server without any problem in SSH using the following command: ssh userremotemachine@...
user avatar
0 votes
1 answer
236 views

Cannot connect GitLab to GKE Cluster

I am trying to create a CI Pipeline for my GitLab project to deploy my microservices automatically on a Google Kubernetes Engine cluster. Sadly I am unable to use the build-In native Google Cloud ...
user avatar
0 votes
0 answers
318 views

Jenkins failing to load in linux Centos

Configured Jenkins, tried to change the port to: 5555 as 8080 is used by tomcat apache. Edited: vim /etc/sysconfig/jenkins and updated JENKINS_LISTEN_ADDRESS="0.0.0.0" AND JENKINS_ARGS="0.0.0.0" ...
user avatar
0 votes
1 answer
135 views

Deploy containerize project using Jenkins and Ansible

I have project running using several docker containers. Now I want to automate deployment using Jenkins (push triggers). I have three scenarios but I like none of them. here are these three different ...
user avatar
0 votes
2 answers
1k views

Jenkins behind corporate proxy

I have configured proxy settings for installing plugins in Jenkins. Please find the below image. But when i try to install plugins getting proxy error. Installing Plugins/Upgrades Preparation ...
user avatar
  • 101
1 vote
1 answer
905 views

How to make custom docker image for Gitlab CI

I have CI on Gitlab for creating of my android application. This is example of my .gitlab-ci.yml: image: openjdk:8-jdk variables: ANDROID_COMPILE_SDK: "28" ANDROID_BUILD_TOOLS: "28.0.2" ...
user avatar
  • 501
1 vote
1 answer
1k views

Jenkins Pipeline: Using Env Var in another Env Var declaration

I would like to make my long "ssh" command reusable as a simple variable throughout my pipeline. To do this, it would be nice to declare my hostname in a var, then use that var in another var ...
user avatar
  • 1,805
4 votes
2 answers
1k views

Deploying as service account (using `gcloud app deploy`) gives “API [appengine.googleapis.com] not enabled on project [%id%].”

I am struggling to make automated deployment using a service account work. First I created a new service account and now I am using a default %my-project-name%@appspot.gserviceaccount.com because ...
user avatar
  • 41
0 votes
0 answers
2k views

Gitlab Runner installation Docker in Docker

Alright, so I am trying to install, register and successfully use a Gitlab Runner as a container in docker with the executor docker, basically docker in docker. I had some problems with it but was ...
user avatar
  • 412
5 votes
3 answers
3k views

Is it possible to populate an S3 bucket through a CloudFormation template?

I need to store some files for my CF template (GraphQL schema, Lambda source, etc) into an S3 bucket that will also (hopefully) be defined in the same template, as that seems to be the only way ...
user avatar
  • 233
5 votes
1 answer
1k views

Credentials management within CI/CD environment

Setup: I have an application that I currently deploy manually on a server. It requires several credentials (client secrets of external services, tokens, and AES keys and IVs etc.) that I currently ...
user avatar
  • 140
3 votes
2 answers
7k views

Set up database for integration testing with Jenkins in Docker

Background: I was following Downloading and running Jenkins in Docker to setup Jenkins Server. Used following parameter to run Docker. docker run \ -u root \ --rm \ -d \ -p 8080:8080 \ -...
user avatar
0 votes
1 answer
986 views

dockerized jenkins failed building dockerfile work dir issue

I have a jenkins container and a pipeline which consist of building docker images. I have mounted the necessary mounts (/var/run/docker.sock, /var/run) for jenkins to use docker commands. I also bind ...
user avatar
  • 185
1 vote
1 answer
558 views

Docker Stack Deploy Does Not Work

i am trying to deploy a stack to my docker swarm but it does not work. i call the command sudo docker stack deploy -c docker-compose.yml server-test but it gives me the error unsupported Compose ...
user avatar
  • 225
0 votes
1 answer
671 views

How to set a dynamic path for output artifact from aws_codebuild_project in Terraform?

I am trying to set up an AWS CodeBuild project in Terraform: resource "aws_codebuild_project" "example" { name = "test-project" description = "test_codebuild_project" build_timeout = ...
user avatar
  • 139
2 votes
1 answer
106 views

How to do continuous delivery with Kubernetes?

I am trying to run Kubernetes namespace setup and application deployment as part of a pipeline. Normally "apply" commands work with idempotency. Now, if I change a ConfigMap, the pods need to be ...
user avatar
0 votes
1 answer
1k views

Docker login from GitLab CI without possibility to access Docker registry password from .gitlab-ci.yaml?

I'm trying to set up a CI environment to build and push a Docker image for a project. The Docker registry I'm trying to push to is a private registry that requires me to log in. I can log in to the ...
user avatar
3 votes
4 answers
12k views

How to reset Jenkins to its factory settings?

I have installed Jenkins on my Red Hat server following this tutorial. But by mistake I skipped the default plugins part. I tried deleting /var/lib/jenkins/config.xml but this file getting created ...
user avatar
1 vote
1 answer
2k views

how to set the image volume in gitlab-runner with docker executor

Okay, so I've researched all over for this and can't seem to find a definitive answer. I want to know how gitlab-runner docker executor sets the volumes for the image. I see from the second URL I ...
user avatar
0 votes
2 answers
42 views

Linux host configuration for continuous deployment?

We are in the process of setting up a host for continuous deployment. Each application runs under its own user account. Currently the approach we are looking at is simply allowing the continuous ...
user avatar
  • 101
1 vote
0 answers
172 views

How to auto deploy to Flynn using Travis CI?

I tried to do as the instructions here: https://blog.evantahler.com/deploying-to-flynn-from-travis-ci-d28f73e3ac99 but it does not seem to work. I get this error: server certificate verification ...
user avatar
1 vote
1 answer
5k views

Output is truncated in Jenkins job when launching PowerShell script remotely using psexec

I've created a job in Jenkins to launch a small powershell script on a remote machine using psexec. In my build step, I'm using the powershell plugin and launching the below command: & "$env:...
user avatar
  • 187
0 votes
1 answer
213 views

Jenkins job get exclusivity on an agent (Slave)?

Currently I use the EC2 plugin with Jenkins, so when it needs more agents (slaves) it starts them up (or kills them when not needed). Up till now the agents have been configured with 2 job slots which ...
user avatar
  • 632