generated from gCubeCI/Pipeline-Docker-Template
add default goal
This commit is contained in:
parent
a9c9415009
commit
0c877ead29
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="jpab" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/gCubeBuild-AlternateJdk.iml" filepath="$PROJECT_DIR$/.idea/gCubeBuild-AlternateJdk.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -39,7 +39,10 @@ pipeline {
|
|||
description: 'Run on all nodes matching the label')
|
||||
string(name: 'build_options',
|
||||
defaultValue: '',
|
||||
description: 'Additional options for Maven.')
|
||||
description: 'Additional options for Maven.')
|
||||
string(name: 'maven_goal',
|
||||
defaultValue: 'clean deploy',
|
||||
description: 'maven goal. Useful if deploy is not needed')
|
||||
}
|
||||
agent
|
||||
{
|
||||
|
@ -62,7 +65,7 @@ pipeline {
|
|||
}
|
||||
stage('Build the job') {
|
||||
steps {
|
||||
sh 'mvn --settings $MAVEN_CONFIG_FOLDER/$gcube_settings -Dmaven.repo.local=$MAVEN_CONFIG_FOLDER/$local_repo $build_options dependency:tree clean deploy'
|
||||
sh 'mvn --settings $MAVEN_CONFIG_FOLDER/$gcube_settings -Dmaven.repo.local=$MAVEN_CONFIG_FOLDER/$local_repo $build_options dependency:tree $maven_goal'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue