Tag: java

Add buld and commit hash to manifest

I am trying to add jenkins build number, git commit hash, etc… to the MANIFEST.MF file. I am following this tutorial: http://akeffalas.github.io/blog/2014/04/jenkins-build-info-maven-artifacts.html Here is my build section of my POM: <build> <finalName>common</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> <manifestEntries> <Build-Time>${maven.build.timestamp}</Build-Time> </manifestEntries> <manifestSections> […]

git: List files that changed between two commits, but exclude whitespace changes and break changes

I want to retrieve a list of all the files that really changed between two commits. So, I want to ignore files where the only things that changed are part of the following list: empty line added / removed line containing just an * (and possibly whitespace) added / removed indentation changed or whitespace added […]

Best way to run J-Meter test's from jenkins

What I want to achieve is as: Build the maven project and push the jar to repo, using maven & jenkins. Deploy the application, using script. Run jmeter test cases and display test results in jenkins dashboard. First jenkins build my project and push it to repo. Then I have defined a post build step […]

TeamCity Git plugin fails with SSL handshake error

The Git plugin in TeamCity (v9.1.1) cannot connect to a Git repository over HTTPS. I get the following error: Failed to collect changes, error: List remote refs failed: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure I doubt that the problem is with the SSL certificate. It is signed by a DigiCert root CA and also exists in […]

ProcessBuilder with GIT command gives no result

I try using the Process Builder to execute a git command. But it does not seem to work any command. git log gives me the right result. git shortlog -s but ends in a TimeOut! Both commands run in a terminal provide the correct result! I have tested on Win and Mac. Does anyone have […]

Problems with merging after a git update-index –assume-unchanged

My coworker has asked me if he could ingore a file after he had committed it, as an example a pom.xml file, commonly used in maven projects. I found out the git update-index –assume-unchanged can be useful in this situation. But when I try to merge from another branch, git is still tracking the ignored […]

Android Compilation: No rule to make target

I am trying to compile an android kernel from source for an ODROID-XU4 (http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143452239825). I downloaded the source, added a few custom drivers & external programs, and now I am trying to create a git repo with all kernel source & custom source. Before I created the repo, my source compiled and deployed fine. After […]

Gitlab CI + maven: Use another repo as local dependency

I started using gitlab for CI with maven. I’de like to use another gitlab repo as a dependency for my project but i have no clue on how to do it. My current .gitlab-ci.yml: image: maven:3-jdk-8 variables: MAVEN_OPTS: -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2 build: script: “mvn clean install” artifacts: name: “oslib” paths: – “target/*.jar”

Install DL4J on Windows

I have just followed the steps given on: https://deeplearning4j.org/quickstart (cloning it from github, executing mvn clean install, import the project into IntelliJ) and I was able to run the examples in IntelliJ. However, I am a bit unsure if these steps are enough for me to be able to use DL4J libraries outside of the […]

When I commit through git, it shows java.io.IOException: An existing connection was forcibly closed by the remote host

java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:192) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100) at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:349) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:112) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:512) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:426) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:805) at java.lang.Thread.run(Thread.java:745) When I push my code to GitHub through git in Android Studio, this […]

Git Baby is a git and github fan, let's start git clone.