Compare commits
50 Commits
jenkins-jo
...
feature/an
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76a9356555 | ||
|
|
24827f1eaa | ||
|
|
8119d609aa | ||
|
|
87f0379969 | ||
|
|
897dbc06ed | ||
|
|
04f497e6b8 | ||
|
|
9bb9220f0d | ||
|
|
009e4e7cb3 | ||
|
|
f883a86564 | ||
|
|
3e561bbf2e | ||
|
|
7061560918 | ||
|
|
78fbc1f580 | ||
|
|
3c9afc11b1 | ||
|
|
d8dda2f0ce | ||
|
|
533c4ba7da | ||
|
|
610c123802 | ||
|
|
0e2f79cbcd | ||
|
|
f5aa1df5d3 | ||
|
|
c727d27e81 | ||
|
|
a9a8f554e8 | ||
|
|
91a42fc5d7 | ||
|
|
d6fd074273 | ||
|
|
7a72b254ed | ||
|
|
8ae83c5555 | ||
|
|
851ef30959 | ||
|
|
feda16a9a8 | ||
|
|
0c2ab7794d | ||
|
|
31209ff01c | ||
|
|
fd26c2e81b | ||
|
|
4e6c3e791d | ||
|
|
b9c23ee70d | ||
|
|
2f9fd78922 | ||
|
|
7848de66a2 | ||
|
|
007c036d2a | ||
|
|
3da4e695d0 | ||
|
|
b7f48cdd4a | ||
|
|
d7839d4033 | ||
|
|
af78bcdf1e | ||
|
|
5a4e789475 | ||
|
|
9969d8b2cf | ||
|
|
3e129808aa | ||
|
|
f03d95e413 | ||
|
|
c8f9061ef6 | ||
|
|
6804a58c01 | ||
|
|
5ef50d2628 | ||
|
|
1c02e35f97 | ||
|
|
f298808592 | ||
|
|
a14a9d4f9a | ||
|
|
d267e0d112 | ||
|
|
833dd401b3 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
.idea/*
|
||||
target
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM openjdk:8-jre-alpine
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
COPY ./target/java-maven-app-*.jar /usr/app/
|
||||
WORKDIR /usr/app
|
||||
|
||||
CMD java -jar java-maven-app-*.jar
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
pipeline {
|
||||
agent none
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
script {
|
||||
echo "Building the application..."
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('test') {
|
||||
steps {
|
||||
script {
|
||||
echo "Testing the application..."
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
steps {
|
||||
script {
|
||||
echo "Deploying the application..."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
75
Jenkinsfile-kubernetes/Jenkinsfile
vendored
75
Jenkinsfile-kubernetes/Jenkinsfile
vendored
@@ -1,75 +0,0 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'Maven'
|
||||
}
|
||||
environment {
|
||||
DOCKER_REPO_SERVER = '664574038682.dkr.ecr.eu-west-3.amazonaws.com'
|
||||
DOCKER_REPO = "${DOCKER_REPO_SERVER}/java-maven-app"
|
||||
}
|
||||
stages {
|
||||
stage('increment version') {
|
||||
steps {
|
||||
script {
|
||||
echo 'incrementing app version...'
|
||||
sh 'mvn build-helper:parse-version versions:set \
|
||||
-DnewVersion=\\\${parsedVersion.majorVersion}.\\\${parsedVersion.minorVersion}.\\\${parsedVersion.nextIncrementalVersion} \
|
||||
versions:commit'
|
||||
def matcher = readFile('pom.xml') =~ '<version>(.+)</version>'
|
||||
def version = matcher[0][1]
|
||||
env.IMAGE_NAME = "$version-$BUILD_NUMBER"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('build app') {
|
||||
steps {
|
||||
script {
|
||||
echo "building the application..."
|
||||
sh 'mvn clean package'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('build image') {
|
||||
steps {
|
||||
script {
|
||||
echo "building the docker image..."
|
||||
withCredentials([usernamePassword(credentialsId: 'ecr-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh "docker build -t ${DOCKER_REPO}:${IMAGE_NAME} ."
|
||||
sh "echo $PASS | docker login -u $USER --password-stdin ${DOCKER_REPO_SERVER}"
|
||||
sh "docker push ${DOCKER_REPO}:${IMAGE_NAME}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
environment {
|
||||
AWS_ACCESS_KEY_ID = credentials('jenkins_aws_access_key_id')
|
||||
AWS_SECRET_ACCESS_KEY = credentials('jenkins_aws_secret_access_key')
|
||||
APP_NAME = 'java-maven-app'
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
echo 'deploying docker image...'
|
||||
sh 'envsubst < kubernetes/deployment.yaml | kubectl apply -f -'
|
||||
sh 'envsubst < kubernetes/service.yaml | kubectl apply -f -'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('commit version update') {
|
||||
steps {
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: 'gitlab-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh 'git config user.email "jenkins@example.com"'
|
||||
sh 'git config user.name "Jenkins"'
|
||||
sh "git remote set-url origin https://${USER}:${PASS}@gitlab.com/nanuchi/java-maven-app.git"
|
||||
sh 'git add .'
|
||||
sh 'git commit -m "ci: version bump"'
|
||||
sh 'git push origin HEAD:jenkins-jobs'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
40
Jenkinsfile-simple-pipeline/Jenkinsfile
vendored
40
Jenkinsfile-simple-pipeline/Jenkinsfile
vendored
@@ -1,40 +0,0 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
def gv
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'Maven'
|
||||
}
|
||||
stages {
|
||||
stage("init") {
|
||||
steps {
|
||||
script {
|
||||
gv = load "script.groovy"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build jar") {
|
||||
steps {
|
||||
script {
|
||||
gv.buildJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build image") {
|
||||
steps {
|
||||
script {
|
||||
gv.buildImage()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("deploy") {
|
||||
steps {
|
||||
script {
|
||||
gv.deployApp()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
def buildJar() {
|
||||
echo "building the application..."
|
||||
sh 'mvn package'
|
||||
}
|
||||
|
||||
def buildImage() {
|
||||
echo "building the docker image..."
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-hub-repo', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh 'docker build -t nanajanashia/demo-app:jma-2.0 .'
|
||||
sh "echo $PASS | docker login -u $USER --password-stdin"
|
||||
sh 'docker push nanajanashia/demo-app:jma-2.0'
|
||||
}
|
||||
}
|
||||
|
||||
def deployApp() {
|
||||
echo 'deploying the application...'
|
||||
}
|
||||
|
||||
return this
|
||||
49
Jenkinsfile-syntax/Jenkinsfile
vendored
49
Jenkinsfile-syntax/Jenkinsfile
vendored
@@ -1,49 +0,0 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
def gv
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
choice(name: 'VERSION', choices: ['1.1.0', '1.2.0', '1.3.0'], description: '')
|
||||
booleanParam(name: 'executeTests', defaultValue: true, description: '')
|
||||
}
|
||||
stages {
|
||||
stage("init") {
|
||||
steps {
|
||||
script {
|
||||
gv = load "script.groovy"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
script {
|
||||
gv.buildApp()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
when {
|
||||
expression {
|
||||
params.executeTests
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
gv.testApp()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("deploy") {
|
||||
steps {
|
||||
script {
|
||||
env.ENV = input message: "Select the environment to deploy to", ok: "Done", parameters: [choice(name: 'ONE', choices: ['dev', 'staging', 'prod'], description: '')]
|
||||
|
||||
gv.deployApp()
|
||||
echo "Deploying to ${ENV}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
def buildJar() {
|
||||
echo "building the application..."
|
||||
sh 'mvn package'
|
||||
}
|
||||
|
||||
def buildImage() {
|
||||
echo "building the docker image..."
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-hub-repo', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh 'docker build -t nanajanashia/demo-app:jma-2.0 .'
|
||||
sh "echo $PASS | docker login -u $USER --password-stdin"
|
||||
sh 'docker push nanajanashia/demo-app:jma-2.0'
|
||||
}
|
||||
}
|
||||
|
||||
def deployApp() {
|
||||
echo 'deploying the application...'
|
||||
}
|
||||
|
||||
return this
|
||||
52
Jenkinsfile-v1
Normal file
52
Jenkinsfile-v1
Normal file
@@ -0,0 +1,52 @@
|
||||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
ANSIBLE_SERVER = "157.230.120.252"
|
||||
}
|
||||
stages {
|
||||
stage("copy ansible folder and ec2 access key to ansible-server") {
|
||||
steps {
|
||||
script {
|
||||
sshagent(['ansible-server-key']) {
|
||||
echo "copying ansible folder to ansible server"
|
||||
// ${ANSIBLE_SERVER}:/root without root will give jenkins@${ANSIBLE_SERVER}:/root
|
||||
sh "scp -o StrictHostKeyChecking=no ansible/* root@${ANSIBLE_SERVER}:/root"
|
||||
|
||||
echo "copying ssh keys for ec2 instances"
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'ec2-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) {
|
||||
sh 'scp $keyfile root@$ANSIBLE_SERVER:/root/ssh-key.pem'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("execute ansible playbook from the ansible-server") {
|
||||
environment {
|
||||
AWS_ACCESS_KEY_ID = credentials('jenkins_aws_access_key_id')
|
||||
AWS_SECRET_ACCESS_KEY = credentials('jenkins_aws_secret_access_key')
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
echo "executing ansible-playbook"
|
||||
|
||||
def remote = [:]
|
||||
remote.name = "ansible-server"
|
||||
remote.host = ANSIBLE_SERVER
|
||||
remote.allowAnyHosts = true
|
||||
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) {
|
||||
remote.identityFile = keyfile
|
||||
remote.user = user
|
||||
|
||||
sshCommand remote: remote, command: "ls -l"
|
||||
|
||||
// set AWS credentials
|
||||
sshScript remote: remote, script: "ansible/prepare-server.sh"
|
||||
|
||||
sshCommand remote: remote, command: "export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}; export AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}; ansible-playbook docker-and-compose.yaml"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
48
Jenkinsfile-v2
Normal file
48
Jenkinsfile-v2
Normal file
@@ -0,0 +1,48 @@
|
||||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
ANSIBLE_SERVER = "157.230.120.252"
|
||||
}
|
||||
stages {
|
||||
stage("copy ansible folder and ec2 access key to ansible-server") {
|
||||
steps {
|
||||
script {
|
||||
sshagent(['ansible-server-key']) {
|
||||
echo "copying ansible folder to ansible server"
|
||||
// ${ANSIBLE_SERVER}:/root without root will give jenkins@${ANSIBLE_SERVER}:/root
|
||||
sh "scp -o StrictHostKeyChecking=no ansible/* root@${ANSIBLE_SERVER}:/root"
|
||||
|
||||
echo "copying ssh keys for ec2 instances"
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'ec2-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) {
|
||||
sh 'scp $keyfile root@$ANSIBLE_SERVER:/root/ssh-key.pem'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("execute ansible playbook from the ansible-server") {
|
||||
environment {
|
||||
AWS_ACCESS_KEY_ID = credentials('jenkins_aws_access_key_id')
|
||||
AWS_SECRET_ACCESS_KEY = credentials('jenkins_aws_secret_access_key')
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
echo "executing ansible-playbook"
|
||||
|
||||
def remote = [:]
|
||||
remote.name = "ansible-server"
|
||||
remote.host = ANSIBLE_SERVER
|
||||
remote.allowAnyHosts = true
|
||||
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]) {
|
||||
remote.identityFile = keyfile
|
||||
remote.user = user
|
||||
|
||||
sshCommand remote: remote, command: "ls -l"
|
||||
sshCommand remote: remote, command: "ansible-playbook docker-and-compose.yaml"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
34
Jenkinsfile-v3
Normal file
34
Jenkinsfile-v3
Normal file
@@ -0,0 +1,34 @@
|
||||
def gv
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage("build jar") {
|
||||
steps {
|
||||
script {
|
||||
echo "building the application..."
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build image") {
|
||||
steps {
|
||||
script {
|
||||
echo "building the docker image..."
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-hub-repo', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh 'docker build -t nanajanashia/demo-app:jma-2.0 .'
|
||||
sh "echo $PASS | docker login -u $USER --password-stdin"
|
||||
sh 'docker push nanajanashia/demo-app:jma-2.0'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("deploy") {
|
||||
steps {
|
||||
script {
|
||||
echo 'deploying the application...'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
66
Jenkinsfile-version-increment/Jenkinsfile
vendored
66
Jenkinsfile-version-increment/Jenkinsfile
vendored
@@ -1,66 +0,0 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'Maven'
|
||||
}
|
||||
stages {
|
||||
stage('increment version') {
|
||||
steps {
|
||||
script {
|
||||
echo 'incrementing app version...'
|
||||
sh 'mvn build-helper:parse-version versions:set \
|
||||
-DnewVersion=\\\${parsedVersion.majorVersion}.\\\${parsedVersion.minorVersion}.\\\${parsedVersion.nextIncrementalVersion} \
|
||||
versions:commit'
|
||||
def matcher = readFile('pom.xml') =~ '<version>(.+)</version>'
|
||||
def version = matcher[0][1]
|
||||
env.IMAGE_NAME = "$version-$BUILD_NUMBER"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('build app') {
|
||||
steps {
|
||||
script {
|
||||
echo "building the application..."
|
||||
sh 'mvn clean package'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('build image') {
|
||||
steps {
|
||||
script {
|
||||
echo "building the docker image..."
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-hub-repo', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh "docker build -t nanajanashia/demo-app:${IMAGE_NAME} ."
|
||||
sh "echo $PASS | docker login -u $USER --password-stdin"
|
||||
sh "docker push nanajanashia/demo-app:${IMAGE_NAME}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
steps {
|
||||
script {
|
||||
echo 'deploying docker image to EC2...'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('commit version update') {
|
||||
steps {
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: 'gitlab-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
// git config here for the first time run
|
||||
sh 'git config --global user.email "jenkins@example.com"'
|
||||
sh 'git config --global user.name "jenkins"'
|
||||
|
||||
sh "git remote set-url origin https://${USER}:${PASS}@gitlab.com/nanuchi/java-maven-app.git"
|
||||
sh 'git add .'
|
||||
sh 'git commit -m "ci: version bump"'
|
||||
sh 'git push origin HEAD:jenkins-jobs'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
ansible/ansible.cfg
Normal file
9
ansible/ansible.cfg
Normal file
@@ -0,0 +1,9 @@
|
||||
[defaults]
|
||||
host_key_checking = False
|
||||
inventory = inventory_aws_ec2.yaml
|
||||
|
||||
interpreter_python = /usr/bin/python3
|
||||
enable_plugins = aws_ec2
|
||||
|
||||
remote_user = ec2-user
|
||||
private_key_file = ~/ssh-key.pem
|
||||
29
ansible/docker-and-compose.yaml
Normal file
29
ansible/docker-and-compose.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: Install python3, docker, docker-compose
|
||||
hosts: all
|
||||
become: yes
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- name: Install python3 and docker
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python
|
||||
yum:
|
||||
name:
|
||||
- python3
|
||||
- docker
|
||||
update_cache: yes
|
||||
state: present
|
||||
- name: Install Docker-compose
|
||||
get_url:
|
||||
url: https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-{{lookup('pipe', 'uname -m')}}
|
||||
dest: /usr/local/bin/docker-compose
|
||||
mode: +x
|
||||
- name: Start docker daemon
|
||||
systemd:
|
||||
name: docker
|
||||
state: started
|
||||
- name: Install docker python module
|
||||
pip:
|
||||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
9
ansible/inventory_aws_ec2.yaml
Normal file
9
ansible/inventory_aws_ec2.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
plugin: aws_ec2
|
||||
regions:
|
||||
- eu-west-3
|
||||
keyed_groups:
|
||||
- key: tags
|
||||
prefix: tag
|
||||
- key: instance_type
|
||||
prefix: instance_type
|
||||
10
ansible/prepare-server.sh
Normal file
10
ansible/prepare-server.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
apt update
|
||||
apt install ansible -y
|
||||
apt install python3-pip -y
|
||||
pip3 install boto3 botocore
|
||||
|
||||
# export AWS_ACCESS_KEY_ID=$1
|
||||
# export AWS_SECRET_ACCESS_KEY=$2
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
npm --version
|
||||
@@ -1,24 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: $APP_NAME
|
||||
labels:
|
||||
app: $APP_NAME
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: $APP_NAME
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: $APP_NAME
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: aws-registry-key
|
||||
containers:
|
||||
- name: $APP_NAME
|
||||
image: $DOCKER_REPO:$IMAGE_NAME
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
@@ -1,11 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: $APP_NAME
|
||||
spec:
|
||||
selector:
|
||||
app: $APP_NAME
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.example</groupId>
|
||||
<artifactId>java-maven-app</artifactId>
|
||||
<version>1.1.7</version>
|
||||
<version>1.1.0-SNAPSHOT</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import com.example.Application;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void testApp() {
|
||||
Application myApp = new Application();
|
||||
|
||||
String result = myApp.getStatus();
|
||||
|
||||
assertEquals("OK", result);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Generated by Maven
|
||||
#Sat Dec 05 15:54:34 UTC 2020
|
||||
version=1.1.7
|
||||
groupId=com.example
|
||||
artifactId=java-maven-app
|
||||
@@ -1,4 +0,0 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: AppTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.099 sec
|
||||
@@ -1,64 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<testsuite tests="1" failures="0" name="AppTest" time="0.01" errors="0" skipped="0">
|
||||
<properties>
|
||||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
||||
<property name="sun.boot.library.path" value="/usr/local/openjdk-8/jre/lib/amd64"/>
|
||||
<property name="java.vm.version" value="25.242-b08"/>
|
||||
<property name="java.vm.vendor" value="Oracle Corporation"/>
|
||||
<property name="maven.multiModuleProjectDirectory" value="/var/jenkins_home/workspace/java-maven-app_jenkins-jobs"/>
|
||||
<property name="java.vendor.url" value="http://java.oracle.com/"/>
|
||||
<property name="path.separator" value=":"/>
|
||||
<property name="guice.disable.misplaced.annotation.check" value="true"/>
|
||||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
|
||||
<property name="file.encoding.pkg" value="sun.io"/>
|
||||
<property name="sun.java.launcher" value="SUN_STANDARD"/>
|
||||
<property name="sun.os.patch.level" value="unknown"/>
|
||||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
|
||||
<property name="user.dir" value="/var/jenkins_home/workspace/java-maven-app_jenkins-jobs"/>
|
||||
<property name="java.runtime.version" value="1.8.0_242-b08"/>
|
||||
<property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
|
||||
<property name="java.endorsed.dirs" value="/usr/local/openjdk-8/jre/lib/endorsed"/>
|
||||
<property name="os.arch" value="amd64"/>
|
||||
<property name="java.io.tmpdir" value="/tmp"/>
|
||||
<property name="line.separator" value="
|
||||
"/>
|
||||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
||||
<property name="os.name" value="Linux"/>
|
||||
<property name="classworlds.conf" value="/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven/bin/m2.conf"/>
|
||||
<property name="sun.jnu.encoding" value="UTF-8"/>
|
||||
<property name="java.library.path" value="/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib"/>
|
||||
<property name="maven.conf" value="/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven/conf"/>
|
||||
<property name="java.specification.name" value="Java Platform API Specification"/>
|
||||
<property name="java.class.version" value="52.0"/>
|
||||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
|
||||
<property name="os.version" value="5.4.0-51-generic"/>
|
||||
<property name="library.jansi.path" value="/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven/lib/jansi-native"/>
|
||||
<property name="user.home" value="/var/jenkins_home"/>
|
||||
<property name="user.timezone" value="Etc/UTC"/>
|
||||
<property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
|
||||
<property name="java.specification.version" value="1.8"/>
|
||||
<property name="file.encoding" value="UTF-8"/>
|
||||
<property name="user.name" value="jenkins"/>
|
||||
<property name="java.class.path" value="/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven/boot/plexus-classworlds-2.6.0.jar"/>
|
||||
<property name="java.vm.specification.version" value="1.8"/>
|
||||
<property name="sun.arch.data.model" value="64"/>
|
||||
<property name="java.home" value="/usr/local/openjdk-8/jre"/>
|
||||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher clean package"/>
|
||||
<property name="java.specification.vendor" value="Oracle Corporation"/>
|
||||
<property name="user.language" value="en"/>
|
||||
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
|
||||
<property name="java.vm.info" value="mixed mode"/>
|
||||
<property name="java.version" value="1.8.0_242"/>
|
||||
<property name="java.ext.dirs" value="/usr/local/openjdk-8/jre/lib/ext:/usr/java/packages/lib/ext"/>
|
||||
<property name="securerandom.source" value="file:/dev/./urandom"/>
|
||||
<property name="sun.boot.class.path" value="/usr/local/openjdk-8/jre/lib/resources.jar:/usr/local/openjdk-8/jre/lib/rt.jar:/usr/local/openjdk-8/jre/lib/sunrsasign.jar:/usr/local/openjdk-8/jre/lib/jsse.jar:/usr/local/openjdk-8/jre/lib/jce.jar:/usr/local/openjdk-8/jre/lib/charsets.jar:/usr/local/openjdk-8/jre/lib/jfr.jar:/usr/local/openjdk-8/jre/classes"/>
|
||||
<property name="java.vendor" value="Oracle Corporation"/>
|
||||
<property name="maven.home" value="/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven"/>
|
||||
<property name="file.separator" value="/"/>
|
||||
<property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
|
||||
<property name="sun.cpu.endian" value="little"/>
|
||||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
|
||||
<property name="sun.cpu.isalist" value=""/>
|
||||
</properties>
|
||||
<testcase classname="AppTest" name="testApp" time="0.01"/>
|
||||
</testsuite>
|
||||
Reference in New Issue
Block a user