You can conveniently use the new build upload feature of NHN Cloud Smart Downloader through the Smart Downloader Jenkins Plugin.
Jenkins 2.145.1 or later version is required. The plugin function is not supported in the previous version of Jenkins, so you need to check the version before using the plugin.
Download the smartdl-uploader.hpi file from the following link. Download: smartdl-uploader.hpi
Go to [Jenkins] > [Manage Jenkins] > [Manage Plugins] > [Advanced Tab] > [Upload Plugin], and select and upload the smartdl-uploader.hpi file downloaded in 1. Download Jenkins Plugin
.
When it is properly installed, the installation can be found on the List of Installed Plugins tab as in the [Figure 1] below.
To use Smart Downloader Jenkins Plugin, NHN Cloud API Security Setting
is required.
NHN Cloud API Security Setting: https://console.toast.com/securitySetting
From [Jenkins] > [Credentials] > [System], select Global Credentials and go to Add Credentials to add NHN Cloud Credentials. Select NHN Cloud Credentials for Kind like [Figure 2] as below, and enter NHN Cloud User ID, NHN Cloud AccessKeyID, and NHN Cloud SecretKey.
Note: Fields marked as [Required] are required input values. If the corresponding value is not entered, the plugin will not run normally.
Go to [Jenkins] > Select a project > [Configuration] > [Post-build Actions], and add SmartDL Uploader
.
Enter setting values as in [Figure 3].
Note: Fields marked as [Required] are required input values. If the corresponding value is not entered, the plugin will not run normally.
Notes for uploading - Files automatically created by the OS (such as .DS_Store, desktop.ini, thumbs.db) are excluded when uploading. - When uploading, the maximum size is limited to 5GB.
After a project build, Plugin execution results can be found through logs. In case of success, you can check the details of the files uploaded successfully, the total number of uploaded files, the total size, the completion time, and the consumed time. If you check the real-time log during upload, you can check the progress more easily because the log remains in real time so that you can check the information of the file being uploaded.
Build upload history is also available on the Service Details
page in the Smart Downloader console.
When uploading a build through the plugin, the NHN Cloud UserID registered in the plugin is displayed in Last Uploader.
If the plugin execution result is failure, refer to the error message in the console log and contact the owner.
Perform installation and configuration of Smart Downloader Plugin in the same way as above, but proceed with the Pipeline configuration instead of 'Post-build Actions' configuration described in [2. Configure the Project (see Figure 3)]. Go to [Jenkins] > Select a project > [Configuration] > [Pipeline], and add the script below at the end.
node() {
stage ('Smart Downloader'){
step([$class:'BuildUploaderPublisher',
credentialsId: '<NHN Cloud Credentials>',
projectId: '<NHN Cloud Project ID>',
appkey: '<Smart Downloader Appkey>',
serviceName: '<Smart Downloader service name>',
path: '<path of folder to upload>',
enableUpload: 'enable'
])
}
}
For detailed setting values of items, refer to [Figure 3] and description of [2. Configure the Project] above.
When configuring and using master/slave nodes in Jenkins, make sure you set the node information.