STASIS
A pipeline delivery generator
Loading...
Searching...
No Matches
artifactory.h
Go to the documentation of this file.
1
2#ifndef STASIS_ARTIFACTORY_H
3#define STASIS_ARTIFACTORY_H
4
5#include <stdio.h>
6#include <stdlib.h>
7#include "core.h"
8#include "download.h"
9
23
26 bool quiet;
27 char *project;
28 bool ant;
29 bool archive;
30 char *build_name;
32 bool deb;
34 bool dry_run;
35 char *exclusions;
36 bool explode;
38 bool flat;
40 char *module;
41 bool recursive;
42 bool regexp;
43 int retries;
45 char *spec;
46 char *spec_vars;
47 bool symlinks;
50 int threads;
52};
53
55 char *archive_entries;
56 char *build;
57 char *build_name;
58 char *build_number;
59 char *bundle;
60 bool detailed_summary;
61 bool dry_run;
62 char *exclude_artifacts;
63 char *exclude_props;
64 char *exclusions;
65 bool explode;
66 bool fail_no_op;
67 bool flat;
68 char *gpg_key;
69 char *include_deps;
70 char *include_dirs;
71 int limit;
72 int min_split;
73 char *module;
74 int offset;
75 char *project;
76 char *props;
77 bool quiet;
78 bool recursive;
79 int retries;
80 int retry_wait_time;
81 bool skip_checksum;
82 char *sort_by;
83 char *sort_order;
84 char *spec;
85 char *spec_vars;
86 int split_count;
87 bool sync_deletes;
88 int threads;
89 bool validate_symlinks;
90};
91
93 char *bundle;
94 bool count;
95 char *sort_by;
96 char *sort_order;
97 int limit;
98 int offset;
99 char *spec;
100 char *spec_vars;
101 char *props;
102 bool recursive;
103 char *build;
104 bool fail_no_op;
105 char *exclusions;
106 char *exclude_artifacts;
107 char *exclude_patterns;
108 char *exclude_props;
109 char *archive_entries;
110 char *include;
111 char *include_deps;
112 char *include_dirs;
113 char *project;
114 char *transitive;
115};
116
145int artifactory_download_cli(char *dest,
146 char *jfrog_artifactory_base_url,
147 char *jfrog_artifactory_product,
148 char *cli_major_ver,
149 char *version,
150 char *os,
151 char *arch,
152 char *remote_filename);
153
176int jfrog_cli(struct JFRT_Auth *auth, const char *subsystem, const char *task, char *args);
177
197int jfrog_cli_rt_ping(struct JFRT_Auth *auth);
198
225int jfrog_cli_rt_upload(struct JFRT_Auth *auth, struct JFRT_Upload *ctx, char *src, char *repo_path);
226
253int jfrog_cli_rt_download(struct JFRT_Auth *auth, struct JFRT_Download *ctx, char *repo_path, char *dest);
254
264int jfrog_cli_rt_search(struct JFRT_Auth *auth, struct JFRT_Search *ctx, char *repo_path, char *pattern);
265
287int jfrog_cli_rt_build_collect_env(struct JFRT_Auth *auth, char *build_name, char *build_number);
288
315int jfrog_cli_rt_build_publish(struct JFRT_Auth *auth, char *build_name, char *build_number);
316
354int jfrt_auth_init(struct JFRT_Auth *auth_ctx);
355
360void jfrt_upload_init(struct JFRT_Upload *ctx);
361
362#endif //STASIS_ARTIFACTORY_H
int jfrog_cli(struct JFRT_Auth *auth, const char *subsystem, const char *task, char *args)
Definition artifactory.c:221
void jfrt_upload_init(struct JFRT_Upload *ctx)
Definition artifactory.c:148
int jfrog_cli_rt_build_collect_env(struct JFRT_Auth *auth, char *build_name, char *build_number)
Definition artifactory.c:288
int jfrog_cli_rt_ping(struct JFRT_Auth *auth)
Definition artifactory.c:300
int jfrt_auth_init(struct JFRT_Auth *auth_ctx)
Definition artifactory.c:168
int jfrog_cli_rt_upload(struct JFRT_Auth *auth, struct JFRT_Upload *ctx, char *src, char *repo_path)
Definition artifactory.c:370
int jfrog_cli_rt_download(struct JFRT_Auth *auth, struct JFRT_Download *ctx, char *repo_path, char *dest)
Definition artifactory.c:304
int jfrog_cli_rt_search(struct JFRT_Auth *auth, struct JFRT_Search *ctx, char *repo_path, char *pattern)
Definition artifactory.c:468
int artifactory_download_cli(char *dest, char *jfrog_artifactory_base_url, char *jfrog_artifactory_product, char *cli_major_ver, char *version, char *os, char *arch, char *remote_filename)
Definition artifactory.c:3
int jfrog_cli_rt_build_publish(struct JFRT_Auth *auth, char *build_name, char *build_number)
Definition artifactory.c:294
JFrog Artifactory Authentication struct.
Definition artifactory.h:11
char * ssh_passphrase
Passphrase for SSH private key.
Definition artifactory.h:18
char * client_cert_key_path
Path to where SSL key is stored.
Definition artifactory.h:15
char * ssh_key_path
Path to SSH private key.
Definition artifactory.h:17
char * user
Account to authenticate as.
Definition artifactory.h:19
char * access_token
Generated access token.
Definition artifactory.h:13
char * client_cert_path
Path to where SSL cert is stored.
Definition artifactory.h:16
char * server_id
Artifactory server identification (unused)
Definition artifactory.h:20
bool insecure_tls
Disable TLS.
Definition artifactory.h:12
char * password
Password.
Definition artifactory.h:14
char * url
Artifactory server address.
Definition artifactory.h:21
Definition artifactory.h:54
Definition artifactory.h:92
JFrog Artifactory Upload struct.
Definition artifactory.h:25
char * project
Destination project name.
Definition artifactory.h:27
bool dry_run
Enable dry run (no-op)
Definition artifactory.h:34
bool deb
Is Debian package?
Definition artifactory.h:32
char * module
Build-info module name (optional)
Definition artifactory.h:40
int retry_wait_time
Seconds between retries.
Definition artifactory.h:44
char * build_number
Build number.
Definition artifactory.h:31
bool symlinks
Preserve symbolic links.
Definition artifactory.h:47
bool recursive
Upload files recursively.
Definition artifactory.h:41
char * build_name
Build name.
Definition artifactory.h:30
char * target_props
Properties (separated by semicolons)
Definition artifactory.h:49
bool detailed_summary
Enable upload summary.
Definition artifactory.h:33
int retries
Number of retries before giving up.
Definition artifactory.h:43
char * spec
Path to JSON upload spec.
Definition artifactory.h:45
bool fail_no_op
Exit 2 when no file are affected.
Definition artifactory.h:37
bool include_dirs
Enable to upload empty directories.
Definition artifactory.h:39
bool archive
Generate a ZIP archive of the uploaded file(s)
Definition artifactory.h:29
bool ant
Enable Ant style regex.
Definition artifactory.h:28
int threads
Thread count.
Definition artifactory.h:50
char * exclusions
Exclude patterns (separated by semicolons)
Definition artifactory.h:35
bool flat
Upload with exact file system structure.
Definition artifactory.h:38
bool regexp
Use regular expressions instead of wildcards.
Definition artifactory.h:42
bool workaround_parent_only
Change directory to local parent directory before uploading files.
Definition artifactory.h:51
bool explode
If uploaded file is an archive, extract it at the destination.
Definition artifactory.h:36
bool sync_deletes
Destination is replaced by uploaded files.
Definition artifactory.h:48
bool quiet
Enable quiet mode.
Definition artifactory.h:26