[Solved][Jenkins] Unable to compiling paper (.jar) from source

Hello, everyone!

I known there already build version of jar on https://papermc.io/ci But I want to try and learn something new.

Also I want to test “Development version” of PaperMC on new branch

I’m unable to compile jar from source using Jenkins
(https://github.com/PaperMC/Paper/tree/ver/1.16#how-to-compiling-jar-from-source)

I make Jenkins clone repo then run command “./paper jar”
and it’s failed for some reason, I don’t know :frowning:

#java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

I’m using Jenkins to build and this is my full log
https://pastebin.com/daX3MZ6Y

Thank you

Well the step following the
“Pointing to 1.16.1” is calling “rm -rf || true”. I don’t know anything about jenkins, but that might be where the issue is.

I’ve try run “rm -rf || true” and it do nothing and no error in bash

I found that you need to config git user.email & user.name

Pointing /home/tackle/papermcc/Paper/work/Minecraft/current to 1.15.2
Applying CraftBukkit patches to NMS...

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

But something still missing and I still don’t understand …

  • I can build paper with Linux Mint (via bash) :+1:
  • I can build paper with CentOS 7 (via bash) :+1:
  • I can’t build paper with CentOS 8 (via bash & Jenkins) :-1:

CentOS 8 is breaking paper build script in someway…

Thank you

Confirmed. I re-install Centos 8 on my system and still build failed.
Should I report bug to PaperMC?

Yeah, might be a good idea if it isn’t working properly. Didn’t know CentOS 8 ever had issues running things like this, interesting to know. Anyway, you can report your bug on the PaperMC GitHub page if you haven’t already here

I reported to PaperMC here
Ref: https://github.com/PaperMC/Paper/issues/3657

Centos 8 is missing patch command. It’s didn’t pre-install on Centos 8 (Unlikely Centos 7)
Solution is yum install patch

CLOSED THREAD