Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29348

Delete temporary zip file used to upload to S3

XMLWordPrintable

      It is needed an option to delete zip file prepared by plugin after deployment.
      It is located in apache-tomcat/temp directory and not cleaned by workspace cleanup plugin.

      Over times that directory grows up and takes all free disk space.

      I'm talking about files:

      Zipping contents of Root File Object (workspace) into tmp file awseb-1141250215951924718.zip (includes=api-account.jar,Dockerfile,Dockerrun.aws.json, excludes=)
      
      
      job log
      Started by upstream project "myproject-api-account" build number 35
      originally caused by:
       Started by upstream project "myproject-api-common" build number 20
       originally caused by:
        Started by user Mikhail Shcherbakhin
      Building in workspace /opt/bitnami/apps/jenkins/jenkins_home/jobs/myproject-api-account_deploy/workspace
      
      Deleting project workspace... done
      
      INFO: define repo: [Repository id=central, type=default, url=http://repo1.maven.org/maven2, isRepositoryManager=false]
      INFO: define repo: [Repository id=releases, type=default, url=http://10.10.10.10:8081/nexus/content/repositories/releases, isRepositoryManager=false]
      INFO: set authentication for deployment
      INFO: define repo: [Repository id=snapshots, type=default, url=http://10.10.10.10:8081/nexus/content/repositories/snapshots, isRepositoryManager=false]
      INFO: set authentication for deployment
      deleted file:/opt/bitnami/apps/jenkins/jenkins_home/jobs/myproject-api-account_deploy/workspace/api-account.jar
      copy /opt/bitnami/apache-tomcat/temp/repositoryconnector-repo/com/myproject/api-account/1.0-SNAPSHOT/api-account-1.0-SNAPSHOT.jar to file:/opt/bitnami/apps/jenkins/jenkins_home/jobs/myproject-api-account_deploy/workspace/api-account.jar
      provisoning config files...
      copy managed file [Dockerfile] to file:/opt/bitnami/apps/jenkins/jenkins_home/jobs/myproject-api-account_deploy/workspace/Dockerfile
      copy managed file [Dockerrun.aws.json] to file:/opt/bitnami/apps/jenkins/jenkins_home/jobs/myproject-api-account_deploy/workspace/Dockerrun.aws.json
      Creating S3 and AWSEB Client (AWS Access Key Id: XXXXXXXXXXXXXXXXXXXX, region: us-west-2)
      Running Version 0.0.3
      Zipping contents of Root File Object (workspace) into tmp file awseb-1141250215951924718.zip (includes=api-account.jar,Dockerfile,Dockerrun.aws.json, excludes=)
      Uploading file awseb-1141250215951924718.zip as s3://elasticbeanstalk-us-west-2-583800234234/myproject-api-service-group-jenkins-myproject-api-account_deploy-24.zip
      Creating application version jenkins-myproject-api-account_deploy-24 for application myproject-api-service-group for path s3://elasticbeanstalk-us-west-2-583800869044/myproject-api-service-group-jenkins-myproject-api-account_deploy-24.zip
      Attempt 1/15
      Environment found (environment id=x-xxxxxxxxxx). Attempting to update environment to version label jenkins-myproject-api-account_deploy-24
      q'Apla!
      Finished: SUCCESS
      Finished: SUCCESS
      

            Unassigned Unassigned
            mikhail Mikhail Shcherbakhin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: