diff --git a/Jenkinsfile-online b/Jenkinsfile-online index dec0cebff..2e196a852 100644 --- a/Jenkinsfile-online +++ b/Jenkinsfile-online @@ -1,4 +1,7 @@ pipeline { + options { + buildDiscarder(logRotator(numToKeepStr: '1', artifactNumToKeepStr: '1')) + } agent { node { label 'maven' @@ -14,8 +17,8 @@ pipeline { GITHUB_CREDENTIAL_ID = 'github-id' KUBECONFIG_CREDENTIAL_ID = 'demo-kubeconfig' REGISTRY = 'docker.io' - DOCKERHUB_NAMESPACE = 'docker_username' - GITHUB_ACCOUNT = 'kubesphere' + DOCKERHUB_NAMESPACE = 'taitd' + GITHUB_ACCOUNT = 'taitd' APP_NAME = 'devops-java-sample' SONAR_CREDENTIAL_ID = 'sonar-token' } @@ -34,7 +37,7 @@ pipeline { } } } - + stage('sonarqube analysis') { steps { container ('maven') {