Skip to content
Permalink
Browse files
simply Jenkinsfile
Signed-off-by: olivier lamy <olamy@apache.org>
  • Loading branch information
olamy committed Dec 29, 2018
1 parent 17d2e08 commit 2b45b98e90c9877fd8e918554b59cd1fb338bdd9
Showing 1 changed file with 1 addition and 39 deletions.
@@ -16,43 +16,5 @@
* specific language governing permissions and limitations
* under the License.
*/
/**
*
*
* Jenkins Pipeline configuration.
*
*/

def labels = 'ubuntu'
def buildJdk = 'JDK 1.8 (latest)'
def buildMvn = 'Maven 3.5.2'
def deploySettings = 'DefaultMavenSettingsProvider.1331204114925'

node(labels) {

cleanWs()

stage ('Clone Sources') {
checkout scm
}

stage ('Build') {
withMaven(
maven: buildMvn,
jdk: buildJdk,
mavenSettingsConfig: deploySettings
) {
sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false"
}
}

stage ('Deploy') {
withMaven(
maven: buildMvn,
jdk: buildJdk,
mavenSettingsConfig: deploySettings
) {
sh "mvn deploy -Dmaven.test.skip=true -B -U -e -fae -Dmaven.compiler.fork=false"
}
}
}
asfStandardBuild cmdline:"clean deploy"

0 comments on commit 2b45b98

Please sign in to comment.