Skip to content
Open
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
89 changes: 89 additions & 0 deletions .gammascan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"gammaAccess": {
"url": "",
"userName": "",
"password": ""
},
"repositories": [
{
"dataDir": "%WORKSPACE%/temp",
"repository": {
"uid": "cc796041d00be75d0ea1a2dc8b3e705e",
"projectName": "githubdemo_jenkins",
"languages": [
"JAVA"
],
"sources": {
"baseDir": "%WORKSPACE%",
"exclusions": []
}
},
"settings": {
"additionalOptions": [],
"includePaths": []
},
"modules": {
"codeissues": [
{
"name": "gamma_java",
"enabled": true,
"config": {
"rules": [],
"options": []
}
}
],
"unittest": [
{
"name": "junit",
"enabled": true,
"config": {
"rules": [],
"options": [
{
"name": "reportDir",
"type": "upload",
"value": "",
"required": true
}
]
}
}
],
"coverage": [
{
"name": "jacoco",
"enabled": true,
"config": {
"rules": [],
"options": [
{
"name": "binaryReportPath",
"type": "upload",
"value": "",
"required": false
},
{
"name": "xmlReportPath",
"type": "upload",
"value": "",
"required": true
}
]
}
}
],
"relevance": [
{
"name": "relevance",
"enabled": true,
"config": {
"rules": [],
"options": []
}
}
]
}
}
]
}
14 changes: 14 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pipeline {
agent any
stages {
stage('build') {
steps {
sh 'mvn clean install'
sh 'echo $GIT_COMMIT'
sh 'echo $GIT_PREVIOUS_SUCCESSFUL_COMMIT'
sh "git diff --name-only --oneline $GIT_PREVIOUS_SUCCESSFUL_COMMIT $GIT_COMMIT > result2.txt"
sh '/var/jenkins_home/corona_wrap/bin/embold-ci-cd-wrapper -c $WORKSPACE/repository-configuration.json -lf result2.txt'
}
}
}
}
4 changes: 2 additions & 2 deletions biojava-ws/src/main/java/demo/HmmerDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void main(String[] args) throws Exception {
// first we get a UniProt sequence
String uniProtID = "P08487";
ProteinSequence seq = getUniprot(uniProtID);

int i=0;

// now we submit this sequence to the Hmmer web site
RemoteHmmerScan hmmer = new RemoteHmmerScan();
Expand All @@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {

int counter = 0;
for (HmmerResult hmmerResult : results) {
//System.out.println(hmmerResult);
System.out.println(hmmerResult);

for ( HmmerDomain domain : hmmerResult.getDomains()) {
counter++;
Expand Down
38 changes: 38 additions & 0 deletions embold.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 1

# Please visit https://docs.embold.io/v2-quick-start-guide/#default-configurations
# to know more about configurations available

sources:
#Files or Directories to be Excluded are mentioned in exclusions
exclusions:
- 'test'
- 'biojava-ws'
- 'mock'
- 'thirdparty'
- 'third-party'
- '3rd-party'
- '3rdparty'
- 'external'
- 'build'
- 'node_modules'
- 'assets'
- 'gulp'
- 'grunt'
- 'library'
- '.git'

# Specify the languages you would like to Scan. Default is all Detected
languages: 'JAVA'


# Define modules one would like to run or disable. This is enough for Basic Users
# Get List of Modules (Which are Default Enabled/Disabled) at the documentation link above
#modules:
# - name: pmd
# enabled: true
# - name: gamma_cxx
# enabled: false
# - name: jshint
# enabled: true

2 changes: 1 addition & 1 deletion repository-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"dataDir": "%WORKSPACE%/temp",
"repository": {
"uid": "cc796041d00be75d0ea1a2dc8b3e705e",
"uid": "0e1c3665863ee85b18f357d364109e35",
"projectName": "githubdemo_jenkins",
"languages": [
"JAVA"
Expand Down