11 votes
Accepted

Tomcat Parallel Deployment, automatically undeploy old applications

You can configure Tomcat to remove the old applications. You need to add the undeployOldVersions attribute to the Host element and set it to true. You'll need to modify your host in server.xml to ...
Mark Thomas's user avatar
9 votes

GitLab CI deployment without Docker for NodeJS application?

Yes, it is possible. You can use shell executor in gitlab-ci-multi-runner. Here is example how to register runner: sudo gitlab-ci-multi-runner register -n \ --url https://gitlab.com/ci \ --...
Grayver's user avatar
  • 191
5 votes
Accepted

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

You can send winrm traffic thru a proxy such as nginx since it's just basic https traffic. If you set up a rule per "target node" in your nginx config so that each node gets a unique url (proxy.domain....
Trondh's user avatar
  • 4,211
3 votes
Accepted

Credentials management within CI/CD environment

I'll talk about secrets instead of credentials, as there might be other sensitive information you'd like to protect. It doesn't matter that your question is worded specifically towards CI/CD systems, ...
fuero's user avatar
  • 9,669
3 votes

Gitlab CI - Deploy via SSH to remote server

ssh-copy-id is asking for a password. You can use sshpass -e and set the SSHPASS environment variable in Gitlab.
user1973167's user avatar
3 votes

TeamCity: 'git fetch' command failed. stderr: Socket Closed

The last part of @Fuyu Persimmon's answer is what fixed it for me. You just need to delete the git cache on the build server (default path .BuildServer/system/caches/git [source]) and kick off the ...
Stelloy's user avatar
  • 141
3 votes
Accepted

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

The Included files trigger setting does allow you to specify which files trigger a build. It does support globbing, patterns such as directory/* to trigger on changes to specific directory. Here is a ...
Daniel t.'s user avatar
  • 9,376
3 votes
Accepted

Cannot execute nested command on remote host over ssh tunnel

Double quoted string will still allow local bash shell to expand the variables, command substitution,... inside the string. This means that your command will execute docker ps --format '{{.Names}}' | ...
Mircea Vutcovici's user avatar
2 votes
Accepted

Jenkins build watch for new branches and build named branch

If you have a parameterised build with no default value and also set your job to poll your source control under Build Triggers > Poll SCM then it should all work. It is important that your branch ...
Jamie Humphries's user avatar
2 votes

GitLab runner runs first two commands and says "build succeeded"

Change npm install to call npm install. This is how the Windows shell works, if you don't use call it will execute in the same context and then exit after running.
Gaui's user avatar
  • 169
2 votes

GitLab runner runs first two commands and says "build succeeded"

I've been having these early exit issues on GitLab CI with Windows with NodeJs / NPM commands. I solved it using PowerShell to wrap the commands in place of directly calling NPM replacing: - npm ...
tobyd's user avatar
  • 471
2 votes
Accepted

How to do continuous delivery with Kubernetes?

When you change ConfigMap content without changing its name, Deployment does not detect changes and does not create new pods. The issue was already fixed and merged, please check here. However, it ...
Anton Kostenko's user avatar
2 votes
Accepted

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

I'm afraid it's not possible to upload to a bucket created from the same template. However if the bucket is pre-existing, say an account-wide deployment bucket, or one of those cf-templates-... ...
MLu's user avatar
  • 25.1k
2 votes
Accepted

Restart tomcat using gitlab-runner

You can add gitlab-runner user to sudoers file: sudo nano /etc/sudoers to execute the specific command without asking for a password: gitlab-runner ALL=(ALL) NOPASSWD: /usr/sbin/service tomcat7 ...
Khaled's user avatar
  • 36.7k
2 votes

OS limits ignored by bamboo

Problem was not caused by Bamboo this time, instead it seems that systemd ignores the system-wide limits. I had to edit the service: vim /etc/systemd/system/bamboo.service and manually add the limit ...
Lion's user avatar
  • 506
2 votes

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

Since you are using Network Mode: awsvpc the container will have its own IP address and will not use the IP of the EC2 instance. You can find the container's IP in the running task details. ...
MLu's user avatar
  • 25.1k
2 votes

Jenkins: Difference between job and workspace/job?

The jobs directory is the place where Jenkins stores the job definitions, build artefacts and build logs. Workspace is the directory that is used to create the build. One can choose which files to ...
Tero Kilkanen's user avatar
2 votes

How to implement Continuous Integration with Puppet and multiple services

The easiest (but not necessarily the best) way I can see to do this is to set something up that requires that for the CI to build out the test environment, it requires matching branch names or ...
shearn89's user avatar
  • 3,453
1 vote

Gitlab runner in docker with docker executor

There is --privileged parameter https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities Which should give capability to run docker inside docker. So theoretically it ...
tojo's user avatar
  • 121
1 vote

Set up database for integration testing with Jenkins in Docker

The console output describes the error: line 1: docker: not found The shell script cannot find docker, likely because Docker is not installed on your Jenkins executor. (The Jenkins Docker plugin ...
jayhendren's user avatar
  • 1,024
1 vote
Accepted

Docker Stack Deploy Does Not Work

The error refers to version: '2' in the first line of docker-compose.yml. You need to change syntax to at least version: '3.0' then docker stack will work. There is upgrade guide for docker-compose....
kubanczyk's user avatar
  • 13.9k
1 vote
Accepted

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

This should not be done from the terraform side. The AWS CodeBuild docs mention how to achieve something like this by using the buildspec, although you might be constrained by only using the env ...
Jonathan Araujo's user avatar
1 vote

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

Unfortunally you need to login in every gitlab-runner "session" and you need to store the credentials. You can store it in Gitlab as a protected and/or masked variable. The mask variable ...
TRW's user avatar
  • 508
1 vote

How to reset Jenkins to its factory settings?

Looking at the provided tutorial link, I assume you installed jenkins with your package manager. Use your package manager to look what files were installed with the Jenkins package using this command: ...
speed488's user avatar
  • 111
1 vote

How to reset Jenkins to its factory settings?

An earlier answer mentioned a .jenkins file or folder. At least on my jenkins instance on CentOS no such file exists. edit /var/lib/jenkins/config.xml and change the following line to: <...
gerryamurphy's user avatar
1 vote

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

The reason why this isn't working for you is because your second script is using Write-Host. The output of Write-Host can't be redirected; so when you execute that script remotely, the output is being ...
jimmyfever's user avatar
1 vote

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

You should open port 8153 in Azure NSG (Inbound rule). The port is not open by default. More information about NSG please refer to this article.
Shui shengbao's user avatar
1 vote
Accepted

Can the Docker FROM version include variables?

TL;DR not only with Docker Long: The documentation says: Environment variables are supported by the following list of instructions in the Dockerfile: ADD COPY ENV EXPOSE LABEL ...
pinage404's user avatar
1 vote

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

Are you using the pipeline as code for your Jenkins jobs or a traditional freestyle jobs linked together? If the latter, then while I know that you can set the job to proceed, I'm sure you can set it ...
SamK's user avatar
  • 11
1 vote

Gitlab CI - Deploy via SSH to remote server

You are not passing the ssh key to rsync. You should do something like this which executes the ssh command to properly identify the ssh key: rsync -avuz -e 'ssh -i ~/.ssh/deploy_rsa' $CI_PROJECT_DIR/...
Yaşar Şentürk's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible