| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is the official API for CodeMC Jenkins and Nexus services. It is used by the Discord Bot to do various tasks as a part of our service to our users.
Maven<project>
<!-- Import CodeMC Repo -->
<repositories>
<repository>
<id>codemc-public</id>
<url>https://repo.codemc.io/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.codemc.api</groupId>
<artifactId>codemc-api</artifactId>
<version>[VERSION]</version>
</dependency>
</dependencies>
</project>repositories {
maven { url 'https://repo.codemc.io/repository/maven-public/' }
}
dependencies {
implementation 'io.codemc.api:codemc-api:[VERSION]'
}repositories {
maven(url = "https://repo.codemc.io/repository/maven-public/")
}
dependencies {
implementation("io.codemc.api:codemc-api:[VERSION]")
}Test suites rely on both an active Nexus and Jenkins instance at ports 8081 and 8080 respectively. Luckily, the project comes with Docker files to set these up yourself.
Without the services, some test suites will fail.
Test the project by using Act, a GitHub Action emulator. This will set up and test everything for you.
act push -j 'test'First, build and run both containers:
# Docker
docker build -t nexus-rest/nexus src/test/docker/nexus
docker run -d -p 8081:8081 --name nexus-rest nexus-rest/nexus
# Jenkins
docker build -t jenkins-rest/jenkins src/test/docker/jenkins
docker run -d -p 8080:8080 --name jenkins-rest jenkins-rest/jenkinsBefore running, copy over the admin.password file into the /tmp/ folder (yes, you will need to make it on Windows) so that the API can log in to the newly created Nexus instance.
docker cp nexus-rest:/nexus-data/admin.password /tmp/admin.passwordThen, run the tests:
./gradlew test| Back | FazBrowse Home | New Git URL |