Hot answers tagged

23 votes

What is self hosted version control system?

Let's take it word by word: Self: You or your organisation owns this thing. By contrast, a cloud-based offering by GitHub.com, Azure, GitLab.com, etc. (see this list on Wikipedia for a more ...
  • 3,118
11 votes
Accepted

What are the expected effects of the acquisition of GitHub by Microsoft?

Microsoft has heavily invested in their Git Virtual File System. It is unlikely then that such a key system central to Microsoft's internal development processes will be going anywhere any time soon, ...
  • 3,684
10 votes
Accepted

How do I configure Travis CI build testing for a Java Eclipse project?

The easiest method is to have Eclipse generate an Ant build script for you. Right click on your project in the Package Explorer and select Export in the context menu. Choose the export type General ->...
  • 1,277
8 votes

Artifactory vs Git for Infrastructure Version Control / Configuration Management

This is a simple thumb rule one could follow Use version control (git, svn, cvs) for the work product created by humans Use artifact management tool (artifactory, nexus, apache archiva) for the ...
  • 426
7 votes
Accepted

Artifactory vs Git for Infrastructure Version Control / Configuration Management

Version Control (using say Git) and Artifact Management (using Artifactory) are complementary. Version control is useful for easily browsing the historical changes and who made them. Artifact ...
  • 735
7 votes
Accepted

How to remove a non-existing GitHub Ansible role from Galaxy?

You have to pass only the repository not the full HTTP URL of the repository when you want to delete it from what I've read in the documentation. So the command should be: ansible-galaxy delete 030 ...
7 votes
Accepted

How to have jenkins add a review to a pull request

I guess the simplest and direct solution would be to use GitHub API: https://docs.github.com/en/rest/reference/pulls#create-a-review-for-a-pull-request But for the requirement you have, PR checks is ...
6 votes

Is it possible to autodeploy on every commit in a specific branch using Travis CI and GitHub?

Instead of using Travis' deployment features, build the deployment logic in to your normal "test" script(s). For a PaaS this might be as simple as pushing to another git remote if all tests pass, but ...
  • 1,197
5 votes

If a piece of work requires manual testing/QA, do we need to wait until opening PR?

The guidance that we've always followed in my various scrum teams is developers should get what they've got into testing as soon as possible. It may mean a little rework later on down the line if ...
5 votes
Accepted

When your micro service in production needs a secret, where is the secret stored and retrieved from?

Short answer Ideally, you should store secrets as environment variables, and retrieve them from a secrets management system like Hashicorp's Vault or AWS Parameter store. Long answer I saw your ...
  • 1,352
5 votes

What is self hosted version control system?

Assume you have your own IT infrastructure, eg a Linux server or a good old mainframe, on which you are running (hosting) your VCS software of choice, e.g GIT or ChangeMan ZMF. In such case you have a ...
  • 6,993
5 votes

What is self hosted version control system?

An example will be maybe worth a thousand words: $ sudo apt install git $ ssh 192.168.0.110 kub@host:~$ git init --bare repo1 Initialized empty Git repository in /home/kub/repo1/ kub@host:~$ logout ...
  • 153
4 votes

If a piece of work requires manual testing/QA, do we need to wait until opening PR?

Open the PR, even if it's not ready. Basically, allow the QA testing & code reviews to operate in parallel. Pros: code review and testing can operate in parallel. Cons: if issues are found in ...
4 votes

Push specific changes (defect fix) and not feature changes

This sounds like a problem for git cherry-pick. If you can separate the user story code from the fix code, by committing them separately, you can cherry pick the relevant commit to merge back into the ...
  • 3,118
4 votes
Accepted

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

The error looks like you're using a non-existent reference (branch/tag). Try specifying the correct branch and tag using the branch/tag options. You can also use the commit hash directly using ref ...
  • 324
4 votes
Accepted

Is it possible to autodeploy on every commit in a specific branch using Travis CI and GitHub?

Travis CI supports deployment on branch release by using the following syntax: deploy: on: branch: release The problem is that GitHub does not support it. As per GitHub Releases Uploading ...
  • 7,181
4 votes
Accepted

Deploy to server after merge to master branch

One could use conditional builds https://docs.travis-ci.com/user/conditional-builds-stages-jobs/ If code is merged into master one could decide to deploy code to production, but I personally prefer a ...
  • 12.7k
4 votes
Accepted

How can I clean/delete a Jenkins workspace after merge?

I am assuming you are using Jenkinsfile. You can do for example: pipeline { agent any stages { stage('Build') { steps { echo 'Building..' } ...
4 votes
Accepted

Jenkins return "Error validating repository information. Credentials ok." when validating repo url using Github App authentication

I encountered the same issue when using the GitHub Branch Source Plugin in Jenkins as part of a multibranch pipeline. The documentation for the credentials configuration states: Credentials used to ...
3 votes
Accepted

The right way to Ansiblically deploy environments directly from Github:

There is no "right" or "wrong". If the commands work when you type them in, then they work, and we won't keep you from doing it. Everything else is opinion. Sure, there are some best practices, for ...
  • 4,736
3 votes
Accepted

How to create GitHub Actions for unit testing in .NET projects?

You do not need to include anything into your assembly to run your tests using GitHub Actions. Just create workflow file in .github/workflows folder with the following content (assuming that you have ....
  • 91
3 votes

How to determine if a Jenkins build is triggered by a Pull Request merged to Master

You might try installing the GitHub Integration plugin. Reading their documentation, they provide a number of environment variables you can use for your purpose. GITHUB_PR_STATE can be OPEN, CLOSE ...
  • 918
3 votes
Accepted

Pass information between Jenkins Job builds

There's a simple two step process... In your originating job, tick step [ X ] Archive the artifacts and set the files to archive. The files are copied to the master, stored in the jobs folder tree, ...
  • 439
2 votes

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

I recently ran into the same error. In my case, I had rebased a branch and was attempting to push to the remote. One of the pulled commits had changed the structure of a few directories, and git ...
2 votes

How do I release multiple projects to same domain using AWS when developer commit the latest code change

You may wish to try scripting the actions you want. Then use git hooks to trigger your scripts to release the latest code to your environment. Alternatively, you could use something like Jenkins to ...
  • 3,684
2 votes

How to Versionize Ansible (Tower) with GitHUB

one strategy is to put your playbook repo(s) thru a regular build/deploy pipeline, where you separate between "nonrelease" and "release", for example by linking the master branch to "release" (most CI ...
  • 381
2 votes

Deploy to server after merge to master branch

The updated deploy script in the question supports the following workflow (and requires this server setup): Create a feature branch and push commits to it Each push deploys the code to the staging ...
  • 1,177
2 votes
Accepted

Storing my Lambda Functions on GitHub

Your idea will work. The organization I work for maintains some open source examples how to do deploy to AWS using a pipeline. In comparison we use GitLab for the purpose. Instead of Travis we use ...
2 votes

vagrant box tests in gitlab-ci

You can do via docker, since it's a test. Here is an example repository, both docker and vagrant. https://github.com/jonashackt/gitlab-ci-stack https://blog.codecentric.de/en/2018/05/gitlab-ci-...
2 votes

How to use Jenkins to manage a repository from Github with a submodule from Bitbucket?

It is a convenience that Jenkins will pull from git for you. With such a complex setup as needing to pull from two repos you can simply use a pipeline job that runs "sh" to explicitly git checkout the ...
  • 1,162

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