Hot answers tagged

7 votes

Does building a Docker image require the Docker daemon to be running?

Each command in the Dockerfile is processed as a separate step. Every step from the build process gets executed in a dedicated container. It starts from Step 1 (the first command in the Dockerfile). ...
13dimitar's user avatar
  • 757
6 votes
Accepted

Directory structure - how do I upload it as-is to an artifactory?

This can be done through the Jrog CLI. The CLI has a recursive option that looks like it will do what you hope. jfrog rt upload --recursive artifactory-mirror/* artifact-repo/dir-struct/ The CLI also ...
sysadmin1138's user avatar
5 votes

Can Ansible alone be a complete CI-CD tool?

Frankly, if you go this route, you do not even need Ansible as a CI/CD driver. Ansible does not bring any infrastructure anyways, it just uses an existing ssh connection, so you can just use said ssh ...
AnoE's user avatar
  • 4,876
5 votes

Can Ansible alone be a complete CI-CD tool?

This is totally possible. Of course you can achieve it without jenkins or similar tools being required. We're always free to reinvent the wheel. The question becomes is it worth the effort? When ...
chicks's user avatar
  • 1,838
5 votes

Why do companies use JFrog Artifactory or other repositories instead of Maven central repository?

Saved bandwith and faster downloads: Artifactory stores the artifacts that are downloaded from maven central. So if another developer needs the same dependencies they don't need to be downloaded again ...
jadephantom's user avatar
3 votes

Does building a Docker image require the Docker daemon to be running?

The Docker client is a CLI interface to the dockerd REST API. Very little happens in the client itself. Docker performs build steps on the dockerd engine and changing this would be a non-trivial task. ...
BMitch's user avatar
  • 3,270
3 votes
Accepted

What is the best way to share maven repository using Docker build (dynamic) image with maven?

You might use docker builder pattern. Briefly you need to create Dockerfile.build which adds pom.xml and run mvn dependency:resolve: FROM maven:latest ADD ./pom.xml /src/pom.xml WORKDIR /src RUN mvn ...
Alexander Matyushentsev's user avatar
2 votes

Make use of CIs as Maven Repository in order to use it for building Docker images without including dependencies

Docker images are after all VM templates, i.e. they have to be more or less self-contained: you get the image, you run the environment with all the dependencies. To approach the challenge ...
Ta Mu's user avatar
  • 6,812
2 votes
Accepted

Is it possible to run every testing.xml file with different jenkins job?

I got the answer on StackOverflow : You can pass the xml file name as parameter to the maven test command. First need to change the pom file as follows. <plugin> <groupId>org.apache....
NarendraR's user avatar
  • 233
2 votes

When to get rid of '-SNAPSHOT'

I have a similar setup. For feature/* and develop, I use something like 18.08-SNAPSHOT in my pom. When we're ready to start release hardening, I'll cut a release branch (release/18.08) and change the ...
Denham Coote's user avatar
2 votes
Accepted

M2 Repo contents is not available in artifactory server

Welcome, Vivek 👋🏻 This is not how it works 😀 Your local cache (~/.m2) is not transferred to Artifactory if anything the direction is the other way around (in some point of time you'll see files ...
JBaruch's user avatar
  • 383
2 votes

How to automate control of synchronization between Maven artefact version and Git tag?

then I can tag the codebase whatever I want like v.0.1 One could use semantic versioning, i.e. X.Y.Z. instead of v.0.1
030's user avatar
  • 13.2k
2 votes

Maven dependencies that are downloaded not available in JFrog Artifactory server

In order Artifactory to cache your dependencies, you need to retrieve them from Artifactory. Once you use your virtual repository, which contains the Maven Central remote, Artifactory will download ...
JBaruch's user avatar
  • 383
1 vote

Using cached dependencies for pipelines in Azure Devops

I made it work like this: variables: MAVEN_CACHE_FOLDER: $(HOME)/.m2/repository MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)' trigger: - master pool: vmImage: 'ubuntu-latest' steps: ...
Wim Deblauwe's user avatar
1 vote

Using cached dependencies for pipelines in Azure Devops

I forgot to add a MAVEN_OPTS variable in mavenOptions: mavenOptions: '-Xmx3072m $(MAVEN_OPTS)' My pipeline.yml stayed like this: trigger: - master pool: vmImage: 'ubuntu-latest' variables: ...
danilo's user avatar
  • 141
1 vote
Accepted

Make TeamCity see test results in real time using Maven, JUnit 4 and Surefire

So I have choosed implementing my own RunListener. I added a compile,test dependency on it to all my other modules and hooked it up in maven surefire plugin configuration. See also https://...
alamar's user avatar
  • 121
1 vote
Accepted

Unable to deploy webapp with `mvn tomcat7:deploy`: 401 Unauthorized

That's because you forgot to link the <configuration> for the plugin with the <server> definition in settings.xml., and the tomcat7 plugin is trying to deploy as un-authenticated because ...
ᴳᵁᴵᴰᴼ's user avatar
1 vote

How to build Java project on existing virtual machine in Azure?

You can use a custom build container image for your pipeline with Maven and all of your other dependencies. You will need to: Create a Dockerfile that installs Maven and all other dependencies that ...
Preston Martin's user avatar
  • 3,238
1 vote
Accepted

How to run a build from a specific old tag in gitlab ci?

Within the project go to CI / CD -> Pipelines press Run Pipeline under Create for choose the branch or tag you want to run the pipeline for press Create Pipeline Now to trigger a manual Job you can ...
smoe's user avatar
  • 126
1 vote

Docker machine connection with https

Considering you say you want to build an image (and not push it to Docker hub or wherever): docker-maven-plugin project recommends using dockerfile-maven for new projects, as the former [...] ...
Alain BECKER's user avatar
1 vote

Deploy war/ear to a container' marked build as failure

Quickly going through this it looks like you have added wrong credentials to Jenkins. Can you please check the added credentials first. aused by: org.codehaus.cargo.container.tomcat.internal....
NIK's user avatar
  • 111
1 vote

Jenkins executes Selenium test in headless mode while use `Jenkins as Service`

Following command line if you plan to run the same application in both a headless and a traditional environment: more details java -Djava.awt.headless=true You can add environment variable in Jenkins ...
Dev's user avatar
  • 111
1 vote

How to use remote Ivy artefacts in Maven jobs with different binary repository managers?

I'd go with (2). Since Bob has a more rigid setup (requires Maven metadata), and Alice can provide that (using more flexible Ant), that sounds like the easiest way to go.
JBaruch's user avatar
  • 383
1 vote

What is the Maven versioning strategy for Continuous Delivery or Deployment?

I've just done this and so far it's working well for us. Basically we use a Jenkinsfile and retrieve the version from the POM (which is using semantic versioning) and remove the snapshot. stage('...
Caledonia91's user avatar
1 vote

What is the Maven versioning strategy for Continuous Delivery or Deployment?

we now want to release faster And from your comment: Basically, since the artifacts depend on each other, we need to release them in the correct sequence. And since there's a lot of them, it takes ...
AnoE's user avatar
  • 4,876
1 vote

Directory structure - how do I upload it as-is to an artifactory?

Adding on @sysadmin1138's answer, to push the content of a folder to another folder while keeping the directory structure starting from the source folder, you can use: (cd source-folder && ...
felipecrs's user avatar
  • 111
1 vote

Directory structure - how do I upload it as-is to an artifactory?

Since the original question is also tagged with Nexus this is how to do bulk upload with Nexus 3: find <directory name>/ \! -type d -print0 | xargs -P10 -0 -I@ curl -v --user <user>:<...
Markus's user avatar
  • 111
1 vote
Accepted

Jenkins Artifactory Integration - Custom Maven plugin creating dynamic version/build

I figured out how to get this job to run which took a number of very specific steps: 1) The Maven3-Artifactory plugin will simply not do what I need it do here. I still need this in my job though to ...
maple_shaft's user avatar
1 vote
Accepted

Different execution contexts for same POM - use properties files?

I'm not an expert on this, but maintaining separate pom files seems like a recipe for things to get out of sync. It would make more sense to define specific dependencies within the same pom.xml and ...
maplebird's user avatar
  • 676
1 vote

How to automate control of synchronization between Maven artefact version and Git tag?

I would recommend to use the maven-release-plugin wich will take care of the sync and keep the version and tag equal. As you can read here The developerConnection contains the URL of the Source ...
papanito's user avatar
  • 273

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