Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [continuous-integration]

The tag has no usage guidance.

0
votes
0answers
22 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" ...
2
votes
1answer
1k views

How can I get Azure to use an SSH key when doing a node.js deploy via git?

I'm deploying a node.js app to Azure Web Services using git from my local machine via: git push azure master One of our npm packages is a private repo hosted on BitBucket. Without Azure having an SSH ...
0
votes
1answer
66 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 = ...
1
vote
1answer
1k views

Independently config test an .htaccess file

I know apachectl has the configtest option, but as far as I can tell it's only for checking the entire config chain for the system apache. I would like to have a tool that can test an individual ....
1
vote
2answers
452 views

Gitlab runner in docker with docker executor

I want to run Gitlab CI Runner in a docker container while also using the docker executor to run my builds in their own docker containers, all of that on top of CoreOS. Is this even possible? Every ...
2
votes
1answer
2k views

How to transparently cache git clone?

I would like to offer a continuous integration service (I'm planning to use hudson, but the solution should work for others as well) with a web interface where a user will define a SCM URL (e.g. a git ...
2
votes
3answers
2k views

Why is Jenkins not pulling in a browser?

I installed Jenkins on my debian server. It is set on port 8080 and when I try connecting to it nothing happens. I know it is running because when I do: root@jini01:/etc/default# /etc/init.d/jenkins ...
0
votes
1answer
635 views

Restart tomcat using gitlab-runner

I have .gitlab-ci.yml configuration with: deploy-integration: stage: deploy script: - cp target/example.war /var/webapps - service tomcat7 restart But execution wasn't successful because ...
1
vote
1answer
65 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 ...
2
votes
1answer
926 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 ...
3
votes
1answer
1k views

How do I configure a WinRM jump host for use with Ansible?

How do I configure a jump host to access Windows servers that I have no direct access to? The Ansible documentation explains how to do this for Linux but doesn't mention how to achieve something ...
0
votes
0answers
29 views

Integrating ClearPass with Juniper Networks SRX

I am trying to get data through ClearPass to SRX, the SRX refuse any data that contains special character like for example {@}. It gives an error in the managert.txt {EntityRef: expecting ';'} Any ...
2
votes
1answer
215 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 ...
2
votes
2answers
409 views

Is there an equivalent for docker testing something like tox for Python?

tox allows you to test your code against different versions of Python. Is there something out there similar to tox that allows me to test my deployment code against different version of a distribution ...
2
votes
2answers
173 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 ...
0
votes
2answers
2k 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 \ -...
0
votes
0answers
108 views

How to use “sudo” for installing an app on gitlab.com for CI?

I have a project at gitlab. I'm setting up Continious Integration for it. I need to install sphinx search engine and it requires sudo. - http://sphinxsearch.com/files/sphinx-3.0.3-facc3fb-linux-amd64....
0
votes
0answers
714 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 ...
0
votes
0answers
188 views

CircleCI deploy to AWS EC2

I have/want a workflow like so: Push branch to Bitbucket Pull request branch into Master in Bitbucket This triggers CircleCI to do a build CircleCI deploys the successful build to AWS EC2 instance I ...
0
votes
1answer
513 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 ...
4
votes
1answer
162 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 ...
4
votes
1answer
928 views

GitlabHQ + Gitlab-CI: customizing build logic

We are using GitlabHQ and Gitlab-CI in our infrastructure. Having such continuous integration set we are willing to customize the build logic in CI. Right now on new commit GitlabHQ triggers a hook ...
0
votes
1answer
119 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 ...
1
vote
1answer
103 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 ...
2
votes
1answer
53 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 ...
0
votes
0answers
15 views

Continuous Delivery - Visual Studio Team Services - Security

I have a VPS as my web server running Windows 2012 r2. I am trying to set up Continuous Delivery for my apps using the Visual Studio Team Services hosted solution. One of the requirements for ...
7
votes
3answers
2k views

Salt State Testing via Jenkins

All, We're trying to have automated tests in our Jenkins setup to run "smoke" and "lint" type of tests in our salt state files (.sls). All google-foo so far has yielded very little information. There ...
0
votes
0answers
13 views

Is it a better practice to use 'docker build' or 'docker run' to generate artifacts in CI

Im currently doing some cleanup and refactoring of an open source project’s ci system (this one). Our setup is likely quite a common one; we have Dockerfiles which create an image that contains our ...
6
votes
1answer
3k views

Gitlab-ci deployment without Docker for nodeJs applicaiton?

Is it possible to implement gitlab ci workflow without using any docker image? all the examples i see for gitlab runner are based on docker only. Even for production deployment. How can I implement ...
1
vote
1answer
1k 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 ...
5
votes
3answers
7k views

executing RSYNC command in jenkins

I'm trying to deploy my code to a remote server. So far I've tried Publish over SSH Plugin: the problem is that I'm unable to keep file permissions Rsync command: this keeps the file permissions, ...
0
votes
2answers
33 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 ...
1
vote
0answers
152 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 ...
10
votes
3answers
18k views

Triggering Jenkins build for merge request from GitLab web hook

I want Jenkins (1.561) to build merge (pull) requests submitted to GitLab (6.7.5), triggered by a merge request web hook. I have a parameterised build, and the Jenkins plugins "GitLab Merge Request ...
0
votes
1answer
2k 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:...
12
votes
2answers
17k views

Gitlab CI - Deploy via SSH to remote server

I have a Gitlab environment using Gitlab CI, for a new project to testify about the compiled files and copy via rsync to a production server. The machine where the build of these resources is exec is ...
6
votes
1answer
32k views

Unable to access Jenkins server

I'm trying to install Jenkins on my web server, which is an Ubuntu 13.10 server running on an Amazon EC2 instance. I've restarted Jenkins using sudo /etc/init.d/jenkins restart When I check my ...
1
vote
2answers
884 views

Attempting to restart tomcat 8 with gitlab-runner, pid file created, log empty, server not started

I am trying to restart my tomcat 8 server after deployment. Setup: gitlab-runner runs with its own user (called gitlab-runner) tomcat uses its own user called tomcat sudoers has an entry so that ...
0
votes
1answer
62 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 ...
2
votes
1answer
600 views

How to launch multiple AWS EC2 machines on Jenkins?

I am using the EC2 plugin in Jenkins (https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin) for using AWS services. As of now, a job which uses this cloud label spins up a single EC2 ...
1
vote
2answers
108 views

TravisCI not uploading files created with grunt

Below is my .travis.yml, I'm using grunt to compile my sass, and minimize js and images which seem to work fine, however none of those files get deployed to Elastic Beanstalk. I added skip_cleanup: ...
3
votes
2answers
1k views

Jenkins build watch for new branches and build named branch

I'd like to configure a single Jenkins build ("job") which will both: watch for new branches and build them when they appear build a named branch or commit on request I can achieve (1) by setting "...
0
votes
0answers
33 views

How to manage publishing maven settings.xml with artifact repository, mirror and proxy details to CI servers?

Is there an automated process I can rely on, as an organisation's artifact repository / proxy manager, to publish configuration updates to dependent continous integration servers and developers? For ...
2
votes
0answers
142 views

How to continous build versioned Docker images

I have a PHP project on GitHub for which I would like to build versioned Docker images. Kinda like CoreOS Container Linux does with their alpha, beta and stable release channels. For development I ...
0
votes
1answer
36 views

Github CI/CD/Branching to external server?

We have a repo in a strict development environment and private webserver residing in /var/www/dev/repo. We want any branches that are created to automatically be created and added to /var/www/branches/...
1
vote
2answers
642 views

GitLab runner runs first two commands and says “build succeeded”

I'm using GitLab's "CI Multi-Runner", which I have installed on Windows 2012 R2 instance. Builds start correctly and begin to run, but the build is marked as complete before it even runs my entire ...
-3
votes
2answers
377 views

Azure: How to reach my Ubuntu server in the Browser?

I have created an Ubuntu server on Azure and installed GoCD, a continuous delivery software, on it via PuTTY. Usually, when GoCD is installed locally, it can be reached via http://localhost:8153/go (...
1
vote
1answer
60 views

Can the Docker FROM version include variables?

I suspect the answer to this question is no as the FROM command comes first in the file (before any ENV statements), but can you parameterize the version of the base image that a docker container is ...
0
votes
1answer
71 views

Multi-stage CI monitoring or how can I split the deployment steps into controllable chunks

First of all, I am not looking for a product recommendation (well, I am, but it's more like me looking for a solution to a problem and not trying to pick something from an existing list) The ...
0
votes
1answer
75 views

How to configure jenkins on ec2 to run whenever there's a new build in my project repository

I wanna set a jenkins CI for the first time in a linux EC2 (I'm working from windows). My jobs are in maven. The thing is: how do I set jenkins to detect whenever there's a new build in my remote ec2 ...