We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c9ad3 commit ce49644Copy full SHA for ce49644
1 file changed
Jenkins_jfrog
@@ -18,21 +18,23 @@ pipeline{
18
}
19
20
}*/
21
- stage('Push artifacts into artifactory') {
+ stage('Push to Artifactory') {
22
steps {
23
- rtUpload (
24
- serverId: 'jfrog',
25
- spec: '''{
26
- "files": [
27
- {
28
- "pattern": "*.war",
29
- "target": "example-repo-local/build-files/"
30
- }
31
- ]
32
- }'''
33
- )
34
+ script {
+ // Configure Artifactory
+ sh '''
+ curl -fL https://getcli.jfrog.io | sh
+ ./jfrog rt config --url=http://13.228.72.253:8081/ --user=divya_admin --password=divyaadmin
+ '''
+
+ // Upload the artifact
+ ./jfrog rt u "target/*.war" "maven/java_jfrog/"
+ }
35
36
37
38
39
40
0 commit comments