Hot answers tagged

4

The EnvInject plugin is basically attempting to load the build environment which uses configuration of JDK tools in Jenkins which fails during reinstallation of Java JDK library on the Windows slave (as per given configuration). This JDK configuration can be found in Global Tool Configuration (at /configureTools) for the given JDK profile which was ...


3

I've done this before, normally in the form of having a /.well-known/info endpoint available on every microservice that then returns a JSON payload with what's in it: { "service_name": "token_exchange", "server_id": "RD1717628373", "commit_hash": "f72a28", "branch": "...


3

It seems to be an issue with Tomcat URL you are using. Either you are using "HTTP" in deployment when server is expecting HTTPS or vice versa. hudson.model.Executor.run(Executor.java:428) Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Have a look at this answer unrecognized-ssl-message-plaintext-connection-...


3

Even with the rationale you edited in, I don't really see a point. DevOps is an intersection of Dev, Ops (and more, like Security and maybe Testing) in a cultural sense. But on a technological sense, you will always have people in a mixed team who are good at one of those but not the others, and that is fine. For example: you might deploy something like ...


3

For something that requires being agnostic to the tooling, and having the flexibility you need, your best bet is Jenkins. https://jenkins.io/. They have a ton of plugins that would meet any use case. Be aware that Jenkins can be heavy for small teams, but your other options lack the flexibility and support for different communities. You can check out ...


2

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.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration&...


2

What could be a feasible way to motivate Maven and repository makers to establish some kind of early time warning, like issue special headers on download, or and additionally for example reject download of vulnerable components by default? Your concern, i.e. the meat of your question is a very valid one: how to improve security when downloading "stuff" from ...


2

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 the dependencies from Maven Central and will cache them for the future use. So, here's what you need to do in order to populate Artifactory with your ...


2

Actually, you can use Fuse (eluded to by the answer above). S3FS-FUSE: This is a free, open-source FUSE plugin and an easy-to-use utility which supports major Linux distributions & MacOS. S3FS also takes care of caching files locally to improve performance. This plugin simply shows the Amazon S3 bucket as a drive on your system. https://...


2

The best way to deploy prometheus to kubernetes is with the helm chart: https://github.com/helm/charts/tree/master/stable/prometheus If you haven't used helm yet, its a very simple install to your laptop/etc and the cluster (and the newest version doesn't even require a cluster side install). It takes like 30 seconds. It's a package manager for ...


2

Since ABFS mentioned in the stacktrace as a caching filesystem, then I suppose two possible reasons and suggest solutions for them Dependency mesh in maven As noted in two answers (one, two) to a similar question When we use maven-assembly-plugin, it merges all our JARs into one, and all META-INFO/services/org.apache.hadoop.fs.FileSystem overwrite each-...


1

Generally people go the opposite direction and try to get more to run on Linux as it is generally cheaper (e.g. license free). Also, Windows 10 is more of a personal workstation (vs Windows Server). So, it seems like it may be a short term strategy (unless you're just learning on your own). Having said that, the most DevOps standard way to do this would ...


1

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 you have Build the image and upload it to a custom Azure Container Registry Modify your YAML pipeline file to reference the new build image Sample: resources: ...


1

No you can't. S3 is an object storage, accessed over HTTP or REST for example. Just as you can't mount an HTTP address as a directory you can't mount a S3 bucket as a directory. Having said that there are some workarounds that expose S3 as a filesystem - e.g. 's3fs' project. How reliable and stable they are I don't know.


1

You can use Glowroot Glowroot is Open source Java Application Monitor. Very easy to use and Very low overhead. Steps to run: Download and unzip glowroot-0.13.4-dist.zip add -javaagent:path/to/glowroot.jar to your application's JVM args Go to http://localhost:4000 and monitor all this


1

If you want to do "DevOps Engineering" then you should examine the various tools and APIs that you are going to use with the projects that are being planned. For example if you are going to use Jenkins, that's a Java based system you could look at that. If you are going to implement microservices you could look at the framework you are going to use and ...


1

A more generic approach would be use a separate virtualized environment for each project, see virtualization. That could be either: a container image - more lightweight, faster and definitely more popular these days, see containers a virtual machine (VM) image, slower and a bit more heavier to maintain than containers You'd have all the project ...


1

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.TomcatManagerException: The username and password you provided are not correct (error 401)


1

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 configurations Manage Jenkins -> Configure System -> Global Properties -> Environment Variables section As: Name : DISPLAY Value: 0 Installing Jenkins ...


1

It seems to me that your Dockerfile should be looking like this: FROM ~~container_on_private_registry~~ USER root WORKDIR /root ARG jenkins_jar_file=jenkins.jar ENV jenkins_jar_file ${jenkins_jar_file} RUN mkdir -p /root/app COPY ${jenkins_jar_file} /root/app/app.jar ENTRYPOINT ["java", "-jar", "/root/app/app.jar"] Explanation: We tell the Dockerfile to ...


1

You can simply put a sonar.properties file under /opt/docker-sonar/conf/. This file will be available inside the container under /opt/sonarqune/conf/, because the folder gets mounted as volume. A full example for a sonar.properties file can be found on github. However all you need to enter is: sonar.ce.javaOpts=-Xmx<XMX_VALUE -Xms<XMS_VALUE> -XX:+...


1

First of all there is one Maven central repository and that is Maven central. The website mvnrepository.com is just a search engine for Maven central. Secondly there is a gazillion of paid services that already scan artifacts for you and allow you to know about known vulnerabilities beforehand. So that problem is already solved. Finally several people who ...


1

I would recommend against importing if at all possible. You can use built-in functionality to achieve the same results. Also be aware of "In-process Script Approval" https://stackoverflow.com/a/42662243/1678094 // GET def get = new URL("https://httpbin.org/get").openConnection(); def getRC = get.getResponseCode(); println(getRC); if(getRC.equals(200)) { ...


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