"# DemoApplication"
Task1: ScriptNames:
- UploadArtifact.ps1
- Web_Deploy.ps1
- Install_EXE.ps1
#UploadArtifact.ps1
The Above script will help us to upload the packages to artifactory.
./UploadArtifact.ps1 -version #releaseversion
./Web_Deploy.ps1 -version #releaseversion -name #virtualdirectory
The above script will help us to achive below tasks.
- Download Artifact from Artifactory based on version to TempDir
- Install IIS adminstration modules
- Install IIS
- Enable DotNet framework
- Check whether WEB-SERVER features has enabled if not Add it
- Chech for Application Pool exists already else create it
- Check for physical Folder for the website if exists remove contents from the folder else create new
- Check for Website if not exits create new else use the same
- Then extract content to physical folder
Note: You have suggested me to use EXE and install silently and on top of that I should have done all above operations but I didnt get right installer so used zip file.
However I have written another below script to install silently. Just to say that we can achive that too. I have tested with Notepod++.exe installer
ScriptName: Install_EXE.ps1
Task2:
ScriptNames:
- Jenkinsfile
- UploadArtifact.ps1
- Web_Deploy.ps1
To achive task two,
#Jenkinsfile
I have developer Jenkinsfile pipeline script and checked in to GITHUB and same has been called from Pipeline Jenkins Job
- Which downloads source code from GitHub
- Download dependents from nuget repository.
- Compile the source code
- Publish binaries to output folder
- Zip the content
- UploadArtifact artifacts to artifactory
- Host IIS and deploy website
Note: I have setup jenkins and Artifactory in local laptop.
Tested in Windows Server 2016 Data center from Google Cloud instance.