Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bg #55

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

bg #55

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
pipeline {
agent any

tools {
//Que herramientas queremos utilizar
maven "Maven3"
jdk "Java11"
}

environment {
DISABLE_AUTH = 'true'
DB_ENGINE = 'sqlite'
}

stages {
stage('Hello') {
steps {
echo "Database engine is ${DB_ENGINE}"
echo "DISABLE_AUTH is ${DISABLE_AUTH}"
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
echo "Job Name: ${env.JOB_NAME}"
echo "Job Name: ${env.JAVA_HOME}"
}

}

stage('Git Polling'){
steps{
//git branch: 'master', url: 'https://github.com/bellyster/time-tracker.git'
git branch: 'master', credentialsId: 'GitHubKey', url: '[email protected]:bellyster/time-tracker.git'

}
}

stage('BUILD CON MAVEN'){
steps{
bat "mvn clean package -DskipTests" //windows

// sh "mvn -Dmaven.test.failure.ignore=true clean package " //Unix
}

post{
success{
echo 'Archivar Artefactos'
archiveArtifacts "core/target/*.jar"
archiveArtifacts "web/target/*.war"
}
}
}

stage('test maven'){
steps{
bat "mvn test"
//sh "mvn test"
}
}


}
}
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# time-tracker
Java (Maven) application for tracking time on the job

Java (Maven) application for tracking time on the job!!
Commit
Otro commit!
Time tracker
PUSH AL REPO!
Otro push!
Otro push mas
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


/**
* Created by Jason on 6/19/2015.
*/
Expand Down
5 changes: 4 additions & 1 deletion web/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>