src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmRecorder.java
@SuppressWarnings("unused")
        public FormValidation doRefresh() {
            String skid = Secret.toString(this.skid);
            String akid = Secret.toString(this.akid);
            if (roleArn != null && !roleArn.isEmpty() && akid != null && !akid.isEmpty() && skid != null && !skid.isEmpty()) {
                return FormValidation.error("AWS Device Farm IAM Role ARN *OR* AKID/SKID must be set!");
            }

            // Clear local caches
            projectsCache.clear();
            poolsCache.clear();
            vpceCache.clear();
            testSpecCache.clear();
            return FormValidation.ok();
        }
/**
         * Refresh button clicked, clear the project and device pool caches
         * so the next click on the drop-down will get fresh content from the API.
         *
         * @return Whether or not the form was ok.
         */
Refresh button clicked, clear the project and device pool caches
so the next click on the drop-down will get fresh content from the API.

@return Whether or not the form was ok.
Refresh button clicked clear the project and device pool caches so the next click on the drop - down will get fresh content from the API . @return Whether or not the form was ok .
@SuppressWarnings("unused")
        public FormValidation doRefresh() {
            String skid = Secret.toString(this.skid);
            String akid = Secret.toString(this.akid);
            if (roleArn != null && !roleArn.isEmpty() && akid != null && !akid.isEmpty() && skid != null && !skid.isEmpty()) {
                return FormValidation.error("AWS Device Farm IAM Role ARN *OR* AKID/SKID must be set!");
            }
            projectsCache.clear();
            poolsCache.clear();
            vpceCache.clear();
            testSpecCache.clear();
            return FormValidation.ok();
        }
@ SuppressWarnings ( "unused" ) public FormValidation doRefresh ( ) { String skid = Secret . toString ( this . skid ) ; String akid = Secret . toString ( this . akid ) ; if ( roleArn != null && ! roleArn . isEmpty ( ) && akid != null && ! akid . isEmpty ( ) && skid != null && ! skid . isEmpty ( ) ) { return FormValidation . error ( "AWS Device Farm IAM Role ARN *OR* AKID/SKID must be set!" ) ; } projectsCache . clear ( ) ; poolsCache . clear ( ) ; vpceCache . clear ( ) ; testSpecCache . clear ( ) ; return FormValidation . ok ( ) ; }
Refresh button clicked, clear the project and device pool caches
 so the next click on the drop-down will get fresh content from the API.
Refresh button clicked clear the project and device pool caches so the next click on the drop - down will get fresh content from the API .
// Clear local caches